// JavaScript Document
function popup(sUrl, name, iWidth, iHeight){
 
	iWidth= 500;
	iHeight=500;
 		scrollbar ="no";
 
	  if(iWidth > screen.width - 100) iWidth = screen.width - 100;
	  if(iHeight > screen.height - 100) iHeight = screen.height - 100;
	 
	  var FX = iWidth;
	  var FY = iHeight;
	  var X = (Math.round(screen.width/2))-(Math.round(FX/2));
	  var Y = (Math.round(screen.height/2))-(Math.round(FY/2)) - 30
	 
	  win=window.open(sUrl, name, "width="+FX+",height="+FY+",status=no,toolbar=no,menubar=no,scrollbars="+scrollbar+",top="+Y+",left="+X );
	  win.focus();
	  
 }
 
 function popupScroll(sUrl, name, iWidth, iHeight, scrollbar){
 
      iWidth = 810;
     iHeight = 800;
 		//scrollbar ="no";

	  if(iWidth > screen.width - 100) iWidth = screen.width - 100;
	  if(iHeight > screen.height - 100) iHeight = screen.height - 100;
	 
	  var FX = iWidth;
	  var FY = iHeight;
	  var X = (Math.round(screen.width/2))-(Math.round(FX/2));
	  var Y = (Math.round(screen.height/2))-(Math.round(FY/2)) - 30
	 
	  win=window.open(sUrl, name, "width="+FX+",height="+FY+",status=no,toolbar=no,menubar=no,scrollbars="+scrollbar+",top="+Y+",left="+X );
	  win.focus();
	  
 }