 function onpopup()
{
var iMyWidth;
     var iMyHeight;
	
//half the screen width minus half the new window width (plus 5 pixel borders).
     iMyWidth = (window.screen.width/2) - 180 ;
//half the screen height minus half the new window height (plus title and status bars).
     iMyHeight = (window.screen.height/2) - 310 ;
	 
	 //half the screen width minus half the new window width (plus 5 pixel borders).

	 
	 //window.open("add_popup_price.php?id="+add_price,"Window1","menubar=no,width=430,height=360,toolbar=no")
	 document.getElementById('mydiv').style.left=iMyWidth+'px';
	 document.getElementById('mydiv').style.top=iMyHeight+'px';
	 
	 //window.open("add_popup_price.php?id="+add_price,"Window1","menubar=no,width=430,height=360,toolbar=no")
	
	 
	 document.getElementById('mydiv').style.display='block';
	 

 
 
}

 
