function openwindow(href)

{
	
	l = (screen.availWidth-10 - 800) / 2;
  	t = (screen.availHeight-20 - 400) / 2;
	features = "width=800,height=533,left="+l+",top="+t;
	features += ",screenX="+l+",screenY="+t;
	features += ",scrollbars=1,resizable=1,location=1";
	features += ",menubar=1,toolbar=1,status=1";
  	window.open(href,'', features);

}

