function openWindow( url, winName, iWidth, iHeight ) {
	this.name = "MAINPAGE";
	popup = window.open( url, winName, "status=no,width=" + iWidth + ",height=" + iHeight + ",resizable=yes,toolbar=no,scrollbars=yes" );
}

function submitToPopUp( form, url, winName, iWidth, iHeight ) {
	var holdTarget, holdAction;

	holdTarget = form.target;
	holdAction = form.action;

	this.name = "MAINPAGE";
	openWindow( '', winName, iWidth, iHeight );
	form.target = winName;
	form.action = url;
	form.submit();

	form.target = holdTarget;
	form.action = holdAction;

	return false;
}

function openPrintWindow(url, winName) {
	openWindow(url, winName, 600, 600);
}

function remoteWindow(str) {
	var mywindow;
	mywindow=window.open('','OPTrust','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=400,height=600');
	mywindow.location.href=str;
	mywindow.focus();
}

function windowOpen(url, target){
	var popUp;
	popUp = window.open(url, target, 'toolbar=no,scrollbars=no,menubar=no,resizable=no,status=no,width=400,height=450,screenX=50,screenY=50,alwaysRaised=yes');
	//popUp.close();
	//popUp = window.open(url, target, 'toolbar=no,scrollbars=no,menubar=no,resizable=no,status=no,width=400,height=450,screenX=50,screenY=50,alwaysRaised=yes');
	//popUp.location.href=url;
	popUp.focus();
	return false;
}

function popWindow( fileName, iWidth, iHeight ) {
		
	this.name = "MAINPAGE";
	popup = window.open(fileName, 'popWin', "status=no,width=" + iWidth + ",height=" + iHeight + ",left='0',top='0',resizable=yes,toolbar=no,scrollbars=yes" );

	if (navigator.appName == "Netscape") { 
   		popup.focus(); 
	} 

}