
function showRemote(url) {

self.name = "main"; // names current window as "main"

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +

"menubar=0,scrollbars=0,resizable=0,width=652,height=130";

OpenWindow = window.open(url, "remote", windowprops); // opens remote control

}


var win = null;
function NewWindow(mypage,myname,w,h,scroll)
{
LeftPosition = (screen.width) ? (screen.width-w)/9 : 0;
TopPosition = (screen.height) ? (screen.height-h)/100 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

// NewPopup: Like NewWindow, but also specify left and top position
var winpop = null;
function NewPopup(mypage,myname,toppos,leftpos,w,h,scroll)
{
LeftPosition = leftpos;
TopPosition = toppos;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

