function openPictureWindow(pictureurl, windowtitle, alttext)
{
    var undefined;

    if (alttext == undefined)
    {
        alttext = '';
    }

    if (windowtitle == undefined)
    {
        windowtitle = 'www.softwaretoolhouse.com';
    }

    var picturewindow = window.open('', '', 'resizable=1');

    with (picturewindow)
    {
        document.open();
        document.write('<!--\n\tŠ Ben Chernys\n\thttp://www.softwaretoolhouse.com\nenquiries@SoftwareToolHouse.com\n-->\n\n');
        document.write('<title>' + windowtitle + '</title>');
        document.write('<meta http-equiv=\"imagetoolbar\" content=\"no\">');
        document.write('<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" scroll =\"no\" onload=\"opener.picturewindowresize(document.images[0].width,document.images[0].height)\">');
        document.write('<a href=\"javascript:self.close()\">');
        document.write('<img src=\"' + pictureurl + '\" border=\"0\" alt=\"' + alttext + '\">');
        document.close();
    }
}

function picturewindowresize(x, y)
{
    if (navigator.appName.toLowerCase() == 'microsoft internet explorer')
      {
         if ((navigator.userAgent.toLowerCase().indexOf('aol')==-1) && (navigator.userAgent.toLowerCase().indexOf('opera')==-1))
             {window.resizeTo(x+10,y+29);}

         if (navigator.userAgent.toLowerCase().indexOf('opera')!=-1)
             {window.resizeTo(x+12,y+31);}

         if (navigator.userAgent.toLowerCase().indexOf('aol')!=-1)
             {window.resizeTo(x+4,y+4);}
      }
    else
    {
        if(navigator.appVersion.substring(0,1) < "5")
            {window.resizeTo(x,y);}
        else
            {window.resizeTo(x+8,y+28);}
    }

    var shckx=(screen.availWidth/2)-(x/2);
    var shcky=(screen.availHeight/2)-(y/2);

    window.moveTo(shckx,shcky);
}

function OpenNewWindow(Picture, Breit, Hoch)
{
    var xsize = Breit + 35;
    var ysize = Hoch + 80;
    var ScreenWidth = screen.width;
    var ScreenHeight = screen.height;
    var xpos = (ScreenWidth / 2) - (xsize / 2);
    var ypos = (ScreenHeight / 2) - (ysize / 2);
    var NewWindow = window.open("", "Picture", "height=" + ysize + ",width=" + xsize + ",scrollbars=no,resizable=no,top= " + ypos + ",left=" + xpos + "");
    NewWindow.document.write("<html><head><title>www.softwaretoolhouse.com");
    NewWindow.document.write("</title></head>");
    NewWindow.document.write("<body bgcolor='#cccccc' onload='focus()'>");
    NewWindow.document.write("<body bgcolor='#cccccc'>");
    NewWindow.document.write("<table align='center'><tr>");
    NewWindow.document.write("<td align='center' valign='top'>");
    NewWindow.document.write("<table border='1' bgcolor='#cccccc' cellpadding='0' cellspacing='1'><tr><td align='center'>");
    NewWindow.document.write("<img src='");
    NewWindow.document.write(Picture);
    NewWindow.document.write("'>");
    NewWindow.document.write("</tr></table>");
    NewWindow.document.write("</td></tr><tr>");
    NewWindow.document.write("<td align='center' valign='bottom'>");
    NewWindow.document.write("<br><center><form><input type='button' value='Close' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");
    NewWindow.document.write("</td></tr></table>");
    NewWindow.document.write("</form></body></html>"); //<<<<
    NewWindow.document.close();
    NewWindow.resizeTo(xsize, ysize);
}

function showdiv(divname)
{
    if ( document.getElementById (divname)!=null)
    {
        document.getElementById (divname).style.display = "inline";
    }
}

function hidediv(divname)
{
    if ( document.getElementById (divname)!=null)
    {
        document.getElementById (divname).style.display = "none";
    }
}

function showDivSwitch(pMax, dispDiv) {
    var counter;
    var wObj;
    for (counter = 0; counter <= pMax; counter++) {
        wObj = 'x' + counter;
        document.getElementById (wObj).style.display = "none";
    }
    document.getElementById (dispDiv).style.display = "inline";
}
// end   HlpBbl




