var myWindow; 
    
function OpenViewPopup(url) 
{    
   var width = 400; 
   var height = 430; 
   var xPos = (screen.width-width)/0; 
   var yPos = (screen.height-height)/0; 

   var toolOptions = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,'; 
   var windowPosOptions = 'width='+width+',height='+height+',left='+xPos+',top='+yPos 

   myWindow=window.open(url,'MyWindow',toolOptions+','+windowPosOptions); 
   myWindow.focus(); //This will bring the current window on to top.. 
} 

