function openWindow(page,name,width,height) {
x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
}

var  neo=window.open(page,'newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
  if(neo.window.focus){neo.window.focus();}
}

function openWindow2(page,name,width,height) {
x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
}

var  neo=window.open(page,'newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',Resizable =0,Scrollbars = 0' );
  if(neo.window.focus){neo.window.focus();}
}


function openWindow4(page,name,width,height) {
x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
}

var  neo=window.open(page,name,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',Resizable =0,Scrollbars = 0' );
  if(neo.window.focus){neo.window.focus();}
}



function openWindow3(page,name,width,height) {



x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
if (screen.availWidth > 1800) { 
x = ((screen.availWidth/2) - width)/2; 
}

var  neo=window.open(page,'newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',Resizable =0,Scrollbars = 1,menubar=yes' );
  if(neo.window.focus){neo.window.focus();}
}