<!-- ;
var newwindow;
var wheight = 0, wwidth = 0;

function popitup2(url, title, head, iwidth, iheight, colour) 
{
    var pwidth, pheight;

    //alert ("Screen Resolution is " + screen.height + " x " + screen.width);
    
    
    
    
    if ( !newwindow || newwindow.closed ) {
    pwidth=iwidth+30;
    pheight=iheight+30;
    newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
    wheight=iheight;
    wwidth=iwidth;
    }

    if (wheight!=iheight || wwidth!=iwidth ) {
    pwidth=iwidth+30;
    pheight=iheight+90;
    newwindow.resizeTo(pwidth, pheight);
    wheight=iheight;
    wwidth=iwidth;
    }

    newwindow.document.clear();
    newwindow.focus();
    newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <link rel="stylesheet" type="text/css" href="khbpopstyle.css" /><\/head> <body onClick="window.close()" bgcolor= \"' + colour + '\"> <center>');
    newwindow.document.writeln('<h3>' + head + '</h3>');
    newwindow.document.writeln('<img src=' + url + ' title=\"' + title + '\" alt=\"' + title + '\" >');
    newwindow.document.writeln('<\/center> <br />Close<\/body> <\/html>');
    newwindow.document.close();
    newwindow.focus();
    }

    // Routines to tidy up popup windows when page is left
    // Call with an onUnload="tidy5()" in body tag

    function tidy() {
    if (newwindow && !newwindow.closed) { newwindow.close(); }
}


function popitup(url, title, iwidth, iheight, colour) 
{
    var pwidth, pheight;

    //alert ("Screen Resolution is " + screen.height + " x " + screen.width);
    
    
    
    
    if ( !newwindow || newwindow.closed ) {
    pwidth=iwidth+30;
    pheight=iheight+30;
    newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
    wheight=iheight;
    wwidth=iwidth;
    }

    if (wheight!=iheight || wwidth!=iwidth ) {
    pwidth=iwidth+30;
    pheight=iheight+90;
    newwindow.resizeTo(pwidth, pheight);
    wheight=iheight;
    wwidth=iwidth;
    }

    newwindow.document.clear();
    newwindow.focus();
    newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <link rel="stylesheet" type="text/css" href="khbpopstyle.css" /><\/head> <body onClick="window.close()" bgcolor= \"' + colour + '\"> <center>');
    newwindow.document.writeln('<img src=' + url + ' title=\"' + title + '\" alt=\"' + title + '\" >');
    newwindow.document.writeln('<\/center> <br />Close<\/body> <\/html>');
    newwindow.document.close();
    newwindow.focus();
    }

    // Routines to tidy up popup windows when page is left
    // Call with an onUnload="tidy5()" in body tag

    function tidy() {
    if (newwindow && !newwindow.closed) { newwindow.close(); }
}

// Based on JavaScript provided by Peter Curtis at www.pcurtis.com -->



