

function popWindow(url) {

	window.open(url, "_blank", "height=400,width=400,location=no,scrollbars,menubars=no,toolbars=no,resizable=yes,left=25,top=25");

}

function hiddenWindow(url) {

	window.open(url, "_blank", "height=100,width=100,location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no,left=2500,top=2500");

}

function win(url,width,height){

	// so that we don't always pop the url into the same window...
	var rnd = ""+Math.round(Math.random(0,100)*1000);

	var x = (screen.availWidth - width)/2;
	var y = (screen.availHeight - height)/2;
	var w = window.open(
		url,
		('window'+rnd),
		('toolbar=no,scrollbars=yes,resizable=no,menubar=no,status=no,directories=no,location=no,width='+width+
		',height='+height+',screenX='+x+',screenY='+y+',left='+x+',top='+y)
	);
	w.focus();
	return w;
}	


function close_refresh(){
	window.opener.location.reload();
	window.close();
}
