// code for popup window
if (window.name=='')
{
window.name="LGmain";
}

var v=parseInt(navigator.appVersion);
isNetscape=navigator.appName.indexOf('Netscape')>=0;
isExplorer=navigator.appName.indexOf('Explorer')>=0;
if(v>=3) self.focus();

function popupWindow(goLocation) {
ww=320;  wh=280;
positionCode='';
if(v>=4) {
sw  = screen.width;           sh  = screen.height;
wbx = Math.round((sw-ww)/2);  wby = Math.round((sh-wh)/2);
if(isExplorer) positionCode='left='+wbx+',top='+wby+',';
if(isNetscape) positionCode='screenX='+wbx+',screenY='+wby+',';
}

newWindow=window.open(goLocation,'LGpopup',
'width='+ww+',height='+wh+','+
positionCode+
'toolbar=0,'+
'menubar=0,'+
'scrollbars=1,'+
'resizable=1');
if(navigator.appVersion && v>=3) newWindow.focus();
return newWindow;
}

function runLink(goLocation) {
if(goLocation!='') {
newWindow=window.open(goLocation, "LGmain");
newWindow.focus();
if(isNetscape) newWindow.focus();
}
//    parent.window.close();
return newWindow;
}
