function smsg(msgStr) { //v1.0
  status=msgStr;
  document.prs_return = true;
}
function nosmsg(msgStr) { //v1.0
  status=msgStr;
  document.prs_return = true;
}
function openWin(pageToLoad, winName, width, height, center,scrollbar){
	  if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
		        xposition = (screen.width - width) / 2;
		        yposition = (screen.height - height) / 2;
	args = "width=" + width + "," + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1," + "scrollbars=" + scrollbar + "," + "status=1," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," + "screeny=" + yposition + "," + "left=" + xposition + "," + "top=" + yposition;
	newWindow = window.open(pageToLoad,winName,args)
	window.focus
	}
}
function extendURL(strURL,file_name){
	if(!file_name)
	{
		var file_name = document.location.href;
	}
	if(strURL){
		if(!ListingFormName){
			document.location.href=file_name+"?"+strURL;
			return false;
		}
		//document.write(strURL);
		
		var frmName = eval("document."+ListingFormName);
		
		str = strURL.split('&');
		for(i=0;i<str.length;i++){
			eachstr = str[i].split('=');
			var element = eval("document."+ListingFormName+"."+eachstr[0]);
			if(element && eachstr[1] && eachstr[0]!="submit")
			{
				element.value = eachstr[1];
			} else if(element && eachstr[0] && eachstr[0]!="submit") {
				element.value = "";
			}
		
		}
	}
	if(AllowPaging==false)
	{
		frmName.method=PostMethod;
		frmName.submit();
	} else {
		document.location.href = file_name;
	}
	return false;
}
