document.oncontextmenu=new Function("return false");

function FSfncCheckString(FormField,AllowBlank,MaxLength) {
	// MaxLength is optional, when not provided the string is only checked for being blank.
	if ((AllowBlank==false) && (FormField.value=="")) {alert(FormField.title + " cannot be blank"); FormField.focus(); return false}
	if ((MaxLength!="") && (FormField.value.length>MaxLength)) {alert(FormField.title + " must be no more than " + MaxLength + " characters long"); FormField.focus(); return false}
	return true;
	}

function FSfncPopUp(NextPage,width,height,resizable,scrollbars,status,winName) {
	// resizable,scrollbars, and status are optional, when not provided these default to no.
	if (resizable=="") {resizable="no"}
	if (scrollbars=="") {scrollbars="no"}
	if (status=="") {status="no"}
	x=self.screenLeft + 10;
	y=self.screenTop + 10;
	if (winName=="") {if (navigator.appVersion.indexOf("AOL")>0) {winName="A" + (Math.round(Math.random() * 1000))} else {winName="FSpopUpWindow"}}
	FSpopUp=window.open(NextPage,winName,'toolbar=no,width=' + width + ',height=' + height + ',left=' + x + ',screenX=' + x + ',top=' + y + ',screenY=' + y + ',status=' + status + ',scrollbars=' + scrollbars + ',resizable=' + resizable + ',menubar=no,directories=no');
	}

function XMLHTTP(TransferMode,URL,POSTdata) {
	if (window.ActiveXObject) {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}
	else if (window.XMLHttpRequest) {xmlhttp=new XMLHttpRequest()}
	if (xmlhttp) {
		//alert(URL);
		xmlhttp.open(TransferMode,URL,false);
		xmlhttp.send(POSTdata);
		return xmlhttp.responseXML;
		}
	}
