// Simple popup 0.1 by roba

//if (ns6) window.onload=new Function('loadwindow(400,200)');
//else loadwindow(400,200);
//loadwindow(400,200);

setTimeout('closeit(\'dwindow2\')', 17500);

function loadwindow(width,height,wname){
	if (ns6) {
		ypos = innerHeight;
		ypos = (ypos/2) - (height/2);
		if (ypos < 1) ypos = 100;
		xpos = innerWidth;
		xpos = (xpos/2) - (width/2);
		if (xpos < 1) xpos = 100;
		document.getElementById(wname).style.display='';
		document.getElementById(wname).style.width=width+"px";
		document.getElementById(wname).style.height=height+"px";
		document.getElementById(wname).style.left=xpos+"px";
		document.getElementById(wname).style.top=ypos+"px";
		}
	else if (ie) {
		ypos = document.body.offsetHeight;
		ypos = (ypos/2) - (height/2);
		if (ypos < 1) ypos = 100;
		xpos = document.body.offsetWidth;
		xpos = (xpos/2) - (width/2);
		if (xpos < 1) xpos = 100;
		document.all(wname).style.display='';
		document.all(wname).style.width=width+"px";
		document.all(wname).style.height=height+"px";
		document.all(wname).style.left=xpos+"px";
		document.all(wname).style.top=ypos+"px";
		}	
	}


function closeit(wname){
if (ns6) document.getElementById(wname).style.display="none";
if (ie) document.all(wname).style.display="none";
}

function pausecomp(Amount)
{
d = new Date() //today's date
while (1)
{
mill=new Date() // Date Now
diff = mill-d //difference in milliseconds
if( diff > Amount ) {break;}
}
}
