
//<!--
function openwin (url,w,h) {
   var inThere = url.match(/\?/g);
   if (inThere)
     glue = '&';
   else
     glue = '?';
   var now = new Date();
   var name = "edit_window" + now.getTime();
   url = url + glue + "uniq=" + now.getTime();
   
	//center position on screen
	leftPos = 0; width =0;
	topPos  = 0; height=0;
	width	= Math.ceil( eval(w/2) );
	height	= Math.ceil( eval(h/2) );
	if (screen) {
		leftPos = (screen.width / 2) - width;
		topPos = (screen.height / 2) - height;
	}
   
   param = "width=" + w + ",height=" + h+ "toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,left="+leftPos+",top="+topPos;
   eval ("name = window.open(url, name, param)");
   if (!eval("name.opener"))
     eval("name.opener = self");
}
//-->

