
function openWindow(url,windowName,width,height) {
//	var h = top.innerHeight? top.innerHeight : (document.documentElement.clientHeight);
//	var w = top.innerHeight? top.innerWidth : (document.documentElement.clientWidth);
	var h = screen.height;
	var w = screen.width;
  	w = Math.floor((w - width) / 2);
  	h = Math.floor((h - height) / 2);
  parameters = 'width=' + width + ',height=' + height + 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left='+w+',top='+h;
  window.open(url,windowName,parameters);
} 

