
function open_window(sUrl, sName, iWidth, iHeight) {
// Function:	Opens a new resizable window with no toolbar, no status, no menubar.

	var sProperties;
	sProperties = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + iWidth + ",height=" + iHeight;
	window.open(sUrl, sName, sProperties);

}

function StrongEscape(param) {
	var escParam, re

		escParam = param
		escParam = escParam.replace(/u00E5/g,"%E5");
		escParam = escParam.replace(/u00E4/g,"%E4");
		escParam = escParam.replace(/u00F6/g,"%F6");
		escParam = escParam.replace(/u00C5/g,"%C5");
		escParam = escParam.replace(/u00C4/g,"%C4");
		escParam = escParam.replace(/u00D6/g,"%D6");
		escParam = escParam.replace(/;/gi,"%3B");
		escParam = escParam.replace(/ /gi,"%20");
		escParam = escParam.replace(/@/gi,"%40");
		escParam = escParam.replace(/\+/gi,"%20");
		escParam = escParam.replace(/\//gi,"%2F");

	return escParam;

}

function open_window_for_form(sUrl, param1, value1, param2, value2, sName, iWidth, iHeight) {
// Function:	Opens a new resizable window with no toolbar, no status, no menubar.

	var sProperties, strU;
	sProperties = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + iWidth + ",height=" + iHeight;
	strU = sUrl+'&'+StrongEscape(param1)+'='+StrongEscape(value1)+'&'+StrongEscape(param2)+'='+StrongEscape(value2)
	//strU = StrongEscape(sUrl)+'&'+StrongEscape(param1)+'='+StrongEscape(value1)+'&'+StrongEscape(param2)+'='+StrongEscape(value2)
	
	//alert(strU);
	window.open(strU, sName, sProperties);

}

function openSearchHelpWindow(height,width){
	msgWindow = window.open('searchhelp.asp',null,'height=' + height + ',width=' + width + ',status=no,toolbar=no,menubar=no,location=no,scroll=no,screenX=400,screenY=400,top=400,left=400')
}

function openSearchHelpWindowAdvanced(strUrl,height,width){
	msgWindow = window.open(strUrl,null,'height=' + height + ',width=' + width + ',status=no,toolbar=no,menubar=no,location=no,scroll=no,screenX=400,screenY=400,top=400,left=400')
}
function launch(o){
	var strValue = o[o.selectedIndex].value;
	
	if( o.selectedIndex>0) 
	{
		window.location=strValue; 
	}
}

function open_window_with_parameters(sUrl, sName, iWidth, iHeight, sStyleProperties){
// Function:	Opens a new window. The style depends on given the properties.

	var sProperties;
	sProperties = sStyleProperties + ",width=" + iWidth + ",height=" + iHeight;
	window.open(sUrl, sName, sProperties);
}

