// Open Window Functions

function OpenWin(sLocation) 
{
window.open(sLocation, 'NewWin','history=no,resizable=yes,status=no,scrollbars=yes,scrolling,menubar=no,left=50,top=50"')
}

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

function OpenWin3(sLocation) 
{
window.open(sLocation, 'NewWin','history=no,resizable=yes,status=no,scrollbars=yes,scrolling,menubar=no,left=20,top=30"')
}

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 showRemote2(sLocation) {
self.name = "main";

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

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,left=25,top=20'"; 

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 closeRemote() {
timer = setTimeout('window.close();', 10);
}



