// Open Window Functions



function OpenWin(sLocation) 

{
window.open(sLocation, 'New_Window', 'height=430,width=400,history=no,resizable=no,status=no,scrollbars=no,scrolling,menubar=no,left=80,top=80"')
}

function OpenWin1(sLocation)
{ 
window.open(sLocation, 'NewWin','directories=yes,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes,fullwindow=yes,left=5,top=20"')
}

function OpenWin2(sLocation) 
{
window.open(sLocation, 'New_Window', 'fullscreen=yes, history=no,resizable=yes,status=no,scrollbars=yes,scrolling,menubar=no"')
}

function OpenWin22(sLocation)
{ 
window.open(sLocation, 'New_Window','width=700,height=500,history=no,resizable=yes,status=no,scrollbars=yes,scrolling,menubar=yes, left=10, top=40"'); 
}

function OpenWin3(sLocation) 
{
window.open(sLocation, 'New_Window','width=690,height=575, history=no,resizable=yes,status=no,scrollbars=no,toolbar=no,scrolling,menubar=no,left=0,top=0"')
}

function OpenWin33(sLocation)
{ 
window.open(sLocation, 'New_Window','width=680,height=530,history=no,resizable=yes,status=no,scrollbars=yes,scrolling,menubar=yes, left=0, top=0"'); 
}

function OpenWin4(sLocation) 
{
window.open(sLocation, 'New_Window','width=567,height=500,left=150,top=50,status=no,toolbar=yes,scrollbars=yes,menubar=yes,location=no"')
}

function OpenWin44(sLocation)
{ 
window.open(sLocation, 'New_Window','width=550,height=530,history=no,resizable=yes,status=no,scrollbars=yes,scrolling,menubar=yes, left=75, top=30"'); 
}

function OpenWin5(sLocation) 
{
window.open(sLocation, 'New_Window','width=740,height=560, history=no,resizable=yes,status=no,scrollbars=yes,scrolling=yes,menubar=no,toolbar=no,left=0,top=0"')
}

function OpenWin9(sLocation) 
{
window.open(sLocation, 'NewWin', 'height=180,width=390,history=no,resizable=yes,status=no,scrollbars=yes,scrolling,menubar=no')
}

var str = "left=0,screenX=0,top=0,screenY=0,fullscreen, " +
"menubar=0,scrollbars=1,scrolling=1,resizable=1'";


if (window.screen) {
var ah = screen.availHeight - 30;
  var aw = screen.availWidth - 10;
  str += ",height=" + ah;
  str += ",innerHeight=" + ah;
  str += ",width=" + aw;
  str += ",innerWidth=" + aw;
} else {
str += ",resizable"; // so the user can resize the window manually
}

function showRemote(sLocation) {
self.name = "main";

OpenWindow = window.open(sLocation, "remote", str); 
}

function showRemote9(sLocation) {
self.name = "mainn";

OpenWindow = window.open(sLocation, "remote", str); 
}

function showRemote2(sLocation) {
self.name = "main";

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=1,scrolling=1,resizable=1,width=700,height=550,left=0,top=0'"; 

OpenWindow = window.open(sLocation, "remote", windowprops);
}

function showRemote3(sLocation) {
self.name = "main";

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=1,scrolling=1,resizable=1,width=570,height=570,left=0,top=0'"; 

OpenWindow = window.open(sLocation, "remote", windowprops);
}

function showRemote4(sLocation) {
self.name = "main";

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=1,scrolling=1,resizable=1,width=500,height=550,left=10,top=10'"; 

OpenWindow = window.open(sLocation, "remote", windowprops);
}

function showRemote44(sLocation) {
self.name = "main";

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=1,scrolling=1,resizable=1,width=580,height=590,left=0,top=0'"; 

OpenWindow = window.open(sLocation, "remote", windowprops);

}

function showRemote5(sLocation) {
self.name = "main";

var windowprops = "toolbar=1,location=1,directories=1,status=1, " +
"menubar=1,scrollbars=1,scrolling=1,resizable=1,width=790,height=570,left=5,top=10'"; 

OpenWindow = window.open(sLocation, "remote", windowprops);
}

function closeRemote() {
timer = setTimeout('window.close();', 10);
}

function newWindow(loc) {
if (document.all)  appWin = window.open(loc,'NewApp','width=660,height=568,status=yes,scrollbars=yes,resizable=yes');
else appWin = window.open(loc,'NewApp','width=680,height=588,status=yes,scrollbars=yes,resizable=yes')
appWin.focus;
}



