function verifyLength(objField, intLength) {	if(objField.value.length > intLength) {		alert("Please limit this field to " + intLength + " characters or less.");		objField.value = objField.value.substr(0, intLength);		objField.focus();	}}function OpenWindow(vurl, vwidth, vheight, vparam, vname) {	var param = "resizable=yes,status=no"; 	if (vparam != "") param = param + "," + vparam;	if (vparam == "fullscreen") param = param + ",fullscreen=yes";	else {		if ( vwidth == 0 || vheight == 0) { 			var vwidth  = screen.width  - 10;			var vheight = screen.height - 275;			var vtop    = 215;			var vleft   = 0;		}		else {			var vleft = (screen.width  - vwidth)  / 2;			var vtop  = (screen.height - vheight) / 2;		}		param = param + ",width=" + vwidth + ",height=" + vheight + ",top=" + vtop + ",left=" + vleft;	}	return window.open(vurl,vname,param);}function openDesignee(TheUrl){	newWin = OpenWindow(TheUrl, 810, 630, 'scrollbars=yes,status=yes,resizable=yes', 'DesigneeUpdate');	newWin.opener = window;//newWin.onunload = function() {setiframeSrc();}}function isNumber(aNum) { 	var isNum = true;	aNum += "";	if(aNum == "undefined" || aNum == "") isNum = false;	//Return false for any strings that don't pass the "isNaN" check:	if(isNaN(parseInt(aNum))) isNum = false;	//Allow for there to be a negative sign as the first character 	if(aNum.substring(0, 1) == "-") aNum = aNum.substring( 1, aNum.length);	//Return false for any strings that contain letters within them:	for(var i = 0; i < aNum.length; i++) {		if((aNum.charAt(i) < "0" || aNum.charAt(i) > "9") & (aNum.charAt(i) != "," ) & (aNum.charAt(i) != ".")) {			isNum = false;			break;		}	}	return(isNum);}// pleaseWait() DHTML functionfunction pleaseWait(txtMessage, txtDotStyle, intCount, intDelay) {	// txtMessage - primary text to display "Saving"	// txtDotStyle - style of animated portion ("dots","blocks","stars", etc)	// intCount - the number of times the "dot" is displayed before resetting to 0	// intDelay - the number of milliseconds before displaying the next dot.		// set the defaults if not passed, only used when initially called.	if (!txtDotStyle) var txtDotStyle = ". ";	if (!intCount) var intCount = 40;	if (!intDelay) var intDelay = 750;		// create the div if not already created	if (!pleaseWait.box) {		pleaseWait.box = document.createElement("div");		var tStyle = pleaseWait.box.style;		tStyle.display = "none";		tStyle.zIndex = 1000;				// otherwise we need to specify a couple of things		tStyle.fontFamily = "sans-serif";		tStyle.fontSize = "14pt";		tStyle.border = "2px solid darkblue";		tStyle.backgroundColor = "lightblue";		tStyle.position = "absolute";		tStyle.padding = "50px";		tStyle.width = "400px";		tStyle.height = "70px";				// create some supporting vars		pleaseWait.box.cnt = 0;		pleaseWait.box.cntHigh = intCount;		pleaseWait.box.delay = intDelay;		pleaseWait.box.dots = "";		pleaseWait.box.dotstyle = txtDotStyle;		// now add the DIV object to our document 		document.body.appendChild(pleaseWait.box);	} // creating text box done		if (txtMessage != "") {			// Hide any combo boxes (select drop downs)		var docFields = document.getElementsByTagName("select");		for (var x = 0; x < docFields.length; x++){			docFields[x].style.visibility = "hidden";		}				// make sure things stay somewhat centered in available space		var tStyle = pleaseWait.box.style;		var tBody = document.getElementsByTagName("body")[0];				tStyle.left = (screen.width / 2) - (parseInt(tStyle.width) / 2);		tStyle.top = ((screen.height / 2) - (parseInt(tStyle.height))) + (tBody.scrollTop - 100);		// if there isn't an interval already started, then start one and keep track		if(!pleaseWait.box.interval) {			var strFunction = "pleaseWait('" + txtMessage + "')";			pleaseWait.box.interval = window.setInterval(strFunction, pleaseWait.box.delay);			pleaseWait.box.style.display = "block";		}		// update the display		pleaseWait.box.dots += pleaseWait.box.dotstyle;		pleaseWait.box.innerHTML = txtMessage + "<br />" + pleaseWait.box.dots;				// increment the counter for the next animation "frame"		pleaseWait.box.cnt++		// reset if we've reach the 		if (pleaseWait.box.cnt >= pleaseWait.box.cntHigh){			pleaseWait.box.cnt = 0;			pleaseWait.box.dots = "";		}	}	else { // this section clears the interval 		// un-hide any combo boxes 		var docFields = document.getElementsByTagName("select");		for (var x = 0; x < docFields.length; x++){			docFields[x].style.visibility = "visible";		}		window.clearInterval(pleaseWait.box.interval);		pleaseWait.box.innerHTML = "";		pleaseWait.box.style.display = "none";		pleaseWait.box = null;	}	return pleaseWait;}// Workaround limitation to the IE's implementation of getElementsByName() method// IE only allows you to get the elements for some tags.function getElementsByName_iefix(tag, name) {	var elem = document.getElementsByTagName(tag);	var arr = new Array();	var iarr = 0;	for(i = 0; i < elem.length; i++) {		att = elem[i].getAttribute("name");		if(att == name) {			arr[iarr] = elem[i];			iarr++;		}	}	return arr;}