// Open Window Functions





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=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=600,height=450,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=800,height=600,left=0,top=0'"; 

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=700,height=600,status=no,scrollbars=yes,resizable=yes');
else appWin = window.open(loc,'NewApp','width=700,height=600,status=no,scrollbars=yes,resizable=yes,toolbar=0,location=0,directories=0,menubar=0')
appWin.focus;
}



