﻿// JScript File

childwin = null;

function openChildWindow(url,title,width,height){
   var w = width+width*0.05;
   var h = height+height*0.05;	
   var x =parseInt((screen.width-w) / 2);	
   var y = parseInt((screen.height-h)/ 2);	
   var cond = "top="+y+",left="+x+",width="+w+",height="+h;
   cond = cond+",scrollbars=no,toolbar=no,status=yes,menubar=no,directories=no";  
   cond = cond+",location=no,resizeable=no,titlebar=no";  
   childwin = window.open(url,title,cond);
   childwin.focus();
 }
 

function createChildWindow(url,title,width,height)
{
     var aDate = new Date();
        title = title + "_" + aDate.getTime();
        openChildWindow(url,title,width,height);
}