//
//
// ALL JAVASCRIPT COPYRIGHT (c) 2001 by M. SIMONS www.no-nonsens.nl
// No Nonsens inc.
//
//

//
// gives this browser the focus (shows on top)
//

self.focus();

  
function popitup(cRedirect,nWidth,nHeight,cTitle)
{
    self.focus();
	var iWidth;
	var iHeight;
	iWidth = (window.screen.width/2) - ((nWidth/2)); 
	iHeight = (window.screen.height/2) - ((nHeight/2) + 50); 
     var exwintitle = Math.round(Math.random() * 64000);
{if (iWidth <= 0) (iWidth = 0)}
{if (iHeight <= 0) (iHeight = 0)}
InNewWindow=window.open("",exwintitle,"HEIGHT="+nHeight+",WIDTH="+nWidth+",status=0,location=0,toolbar=0,menubar=0,scrollbars=yes,resizable=yes, top="+iHeight+",left="+iWidth+",screenX=" + iWidth + ",screenY=" + iHeight);
InNewWindow.document.write ('<HTML><HEAD>');
InNewWindow.document.write ('<TITLE>');
InNewWindow.document.write (cTitle);
InNewWindow.document.write ('</TITLE></HEAD>');
InNewWindow.document.write ('<Script language = "Javascript">');
InNewWindow.document.write ('self.focus();');
InNewWindow.document.write ('</script>');
InNewWindow.document.write ('<body bgcolor="#b2d6fd" onload="parent.location=');
InNewWindow.document.write ('&#39;');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('&#39;');
InNewWindow.document.write ('">');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000>');
InNewWindow.document.write ('Connecting to:  ');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000> <b>');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('</b></BODY></HTML>');
InNewWindow.document.close();
}

function wizard(cRedirect,nWidth,nHeight,cTitle)
{
    self.focus();
	var iWidth;
	var iHeight;
	iWidth = (window.screen.width/2) - ((nWidth/2)); 
	iHeight = (window.screen.height/2) - ((nHeight/2) + 50); 
     var exwintitle = Math.round(Math.random() * 64000);
{if (iWidth <= 0) (iWidth = 0)}
{if (iHeight <= 0) (iHeight = 0)}
InNewWindow=window.open("",exwintitle,"HEIGHT="+nHeight+",WIDTH="+nWidth+",status=0,location=0,toolbar=0,menubar=0,scrollbars=no,resizable=no, top="+iHeight+",left="+iWidth+",screenX=" + iWidth + ",screenY=" + iHeight);
InNewWindow.document.write ('<HTML><HEAD>');
InNewWindow.document.write ('<TITLE>');
InNewWindow.document.write (cTitle);
InNewWindow.document.write ('</TITLE></HEAD>');
InNewWindow.document.write ('<Script language = "Javascript">');
InNewWindow.document.write ('self.focus();');
InNewWindow.document.write ('</script>');
InNewWindow.document.write ('<body bgcolor="#b2d6fd" onload="parent.location=');
InNewWindow.document.write ('&#39;');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('&#39;');
InNewWindow.document.write ('">');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000>');
InNewWindow.document.write ('Connecting to:  ');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000> <b>');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('</b></BODY></HTML>');
InNewWindow.document.close();
}

function pppopitup(cRedirect,nWidth,nHeight,cTitle)
{
    self.focus();
	var iWidth;
	var iHeight;
	iWidth = (window.screen.width/2) - ((nWidth/2)); 
	iHeight = (window.screen.height/2) - ((nHeight/2) + 50); 
     var exwintitle = Math.round(Math.random() * 64000);
{if (iWidth <= 0) (iWidth = 0)}
{if (iHeight <= 0) (iHeight = 0)}
InNewWindow=window.open("",exwintitle,"HEIGHT="+nHeight+",WIDTH="+nWidth+",status=1,location=1,toolbar=1,menubar=1,scrollbars=yes,resizable=yes, top="+iHeight+",left="+iWidth+",screenX=" + iWidth + ",screenY=" + iHeight);
InNewWindow.document.write ('<HTML><HEAD>');
InNewWindow.document.write ('<TITLE>');
InNewWindow.document.write (cTitle);
InNewWindow.document.write ('</TITLE></HEAD>');
InNewWindow.document.write ('<Script language = "Javascript">');
InNewWindow.document.write ('self.focus();');
InNewWindow.document.write ('</script>');
InNewWindow.document.write ('<body bgcolor="#b2d6fd" onload="parent.location=');
InNewWindow.document.write ('&#39;');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('&#39;');
InNewWindow.document.write ('">');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000>');
InNewWindow.document.write ('Connecting to:  ');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000> <b>');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('</b></BODY></HTML>');
InNewWindow.document.close();
}

function spopitup(cRedirect,nWidth,nHeight,cTitle)
{
    self.focus();
	var iWidth;
	var iHeight;
	iWidth = (window.screen.width/2) - ((nWidth/2)); 
	iHeight = (window.screen.height/2) - ((nHeight/2) + 50); 
{if (iWidth <= 0) (iWidth = 0)}
{if (iHeight <= 0) (iHeight = 0)}
InNewWindow=window.open("","self","HEIGHT="+nHeight+",WIDTH="+nWidth+",status=0,location=0,toolbar=0,menubar=0,scrollbars=no,resizable=yes, top="+iHeight+",left="+iWidth+",screenX=" + iWidth + ",screenY=" + iHeight);
InNewWindow.document.write ('<HTML><HEAD>');
InNewWindow.document.write ('<TITLE>');
InNewWindow.document.write ('PopUp screen');
InNewWindow.document.write ('</TITLE></HEAD>');
InNewWindow.document.write ('<Script language = "Javascript">');
InNewWindow.document.write ('self.focus();');
InNewWindow.document.write ('</script>');
InNewWindow.document.write ('<body bgcolor="#b2d6fd" onload="parent.location=');
InNewWindow.document.write ('&#39;');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('&#39;');
InNewWindow.document.write ('">');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000>');
InNewWindow.document.write ('Connecting to:  ');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000> <b>');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('</b></BODY></HTML>');
InNewWindow.document.close();
}

function hpopitup(cRedirect,nWidth,nHeight,cTitle)
{
    self.focus();
	var iWidth;
	var iHeight;
	iWidth = (window.screen.width/2) - ((nWidth/2)); 
	iHeight = (window.screen.height/2) - ((nHeight/2) + 50); 
{if (iWidth <= 0) (iWidth = 0)}
{if (iHeight <= 0) (iHeight = 0)}
InNewWindow=window.open("","self","HEIGHT="+nHeight+",WIDTH="+nWidth+",status=0,location=0,toolbar=0,menubar=0,scrollbars=yes,resizable=yes, top="+iHeight+",left="+iWidth+",screenX=" + iWidth + ",screenY=" + iHeight);
InNewWindow.document.write ('<HTML><HEAD>');
InNewWindow.document.write ('<TITLE>');
InNewWindow.document.write ('PopUp screen');
InNewWindow.document.write ('</TITLE></HEAD>');
InNewWindow.document.write ('<Script language = "Javascript">');
InNewWindow.document.write ('self.focus();');
InNewWindow.document.write ('</script>');
InNewWindow.document.write ('<body bgcolor="#b2d6fd" onload="parent.location=');
InNewWindow.document.write ('&#39;');
InNewWindow.document.write (cRedirect);
InNewWindow.document.write ('&#39;');
InNewWindow.document.write ('">');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000>');
InNewWindow.document.write ('Connecting to:  ');
InNewWindow.document.write ('<Font face=arial size=2 color = #000000> <b>Site Administrator Logon</b></BODY></HTML>');
InNewWindow.document.close();
}


function OpenNewWindow(cPicture,w,h,cTitle)
{
window.focus();
	var iWidth;
	var iHeight;
	iWidth = (window.screen.width/2) - ((w/2)); 
	iHeight = (window.screen.height/2) - ((h/2))-100; 
{if (iWidth <= 0) (iWidth = 0)}
{if (iHeight <= 0) (iHeight = 0)}
NewWindow=window.open("","Ingenius","HEIGHT="+h+",WIDTH="+w+",status=0,location=0,toolbar=0,menubar=0,scrollbars=yes,resizable=yes, top="+iHeight+",left="+iWidth+",screenX=" + iWidth + ",screenY=" + iHeight);
NewWindow.document.write ("<HTML><HEAD><TITLE>");
NewWindow.document.write (cTitle);
NewWindow.document.write ("</TITLE></HEAD>");
NewWindow.document.write ("<Script language = Javascript >");
NewWindow.document.write ("self.focus();");
NewWindow.document.write ("</script>");
NewWindow.document.write ("<LINK REL='Stylesheet' HREF='/core/css/nononsens.css'>");
NewWindow.document.write ("<BODY>");
NewWindow.document.write ("<P ALIGN=CENTER>");
NewWindow.document.write ("<IMG SRC=");
NewWindow.document.write (cPicture);
NewWindow.document.write (">");
NewWindow.document.write ("</P>");
NewWindow.document.write ("<center><FORM><INPUT TYPE='button' VALUE='Close Window' onClick='self.close()'>");
NewWindow.document.write ("</FORM></CENTER></BODY></HTML>");
NewWindow.document.close();
return false;
}