
function launchwindow(url, name, width, height) {
var str = "height=" + height + ",innerHeight=" + height;
str += ",width=" + width + ",innerWidth=" + width;
if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
var xc = (aw - width) / 2;
var yc = (ah - height) / 2;
str += ",left=" + xc + ",screenX=" + xc;
str += ",top=" + yc + ",screenY=" + yc;
}
return window.open(url, 'remote', str);

remote.moveTo(0,0);
remote.document.opener=self;

if (navigator.appVersion.substring(1,0)>="3") {
remote.focus(); }
}
