function PopUpWindow(sUrl, iWidth, iHeight)                                                                                                                                                                
{                                                                                                                                                                                                          
	var sWindowString;                                                                                                                                                                                      
	var dNew = new Date();                                                                                                                                                                                  
	var sRandName = dNew.getUTCMilliseconds();                                                                                                                                                              
	sRandName = sRandName.toString();                                                                                                                                                                       
                                                                                                                                                                                                           
	sWindowString = "width=" + iWidth + ",height=" + iHeight + ",toolbar=0,scrollbars=no,location=0,directories=0,status=0,menubar=0,resizable=yes";                                                        
	newWindow = window.open(sUrl, sRandName, sWindowString);                                                                                                                                                
}                                                                                                                                                                                                          
                                                                                                                                                                                                           
function PopUpCenterWindow(sUrl, iWidth, iHeight, sScroll)                                                                                                                                                 
{                                                                                                                                                                                                          
	var sWindowString;                                                                                                                                                                                      
	var dNew = new Date();                                                                                                                                                                                  
	var sRandName = dNew.getUTCMilliseconds();                                                                                                                                                              
	sRandName = sRandName.toString();                                                                                                                                                                       
                                                                                                                                                                                                           
	var Xpos= (screen.availWidth - iWidth)/2;                                                                                                                                                               
	var Ypos= (screen.availHeight - iHeight)/2-10;                                                                                                                                                          
                                                                                                                                                                                                           
	if (sScroll == "")                                                                                                                                                                                      
		{                                                                                                                                                                                                    
		sScroll = "no";                                                                                                                                                                                      
		}                                                                                                                                                                                                    
                                                                                                                                                                                                           
	sWindowString = "width=" + iWidth + ",height=" + iHeight + ",screenX=" + Xpos + ",screenY="  + Ypos + ",toolbar=0,scrollbars=" + sScroll + ",location=0,directories=0,status=0,menubar=0,resizable=yes";
	newWindow = open(sUrl, sRandName, sWindowString);                                                                                                                                                       
	newWindow.moveTo(Xpos, Ypos);                                                                                                                                                                           
	newWindow.location=sUrl;                                                                                                                                                                                
}                                                                                                                                                                                                          
                                                                                                                                                                                                           
                                                                                                                                                                                                 