/* -- Adobe GoLive JavaScript Library */

CSStopExecution=false;
function CSAction(array) {return CSAction2(CSAct, array);}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var aa = fct[array[i]];
		if (aa == null) return false;
		var ta = new Array;
		for(var j=1;j<aa.length;j++) {
			if((aa[j]!=null)&&(typeof(aa[j])=="object")&&(aa[j].length==2)){
				if(aa[j][0]=="VAR"){ta[j]=CSStateArray[aa[j][1]];}
				else{if(aa[j][0]=="ACT"){ta[j]=CSAction(new Array(new String(aa[j][1])));}
				else ta[j]=aa[j];}
			} else ta[j]=aa[j];
		}			
		result=aa[0](ta);
	}
	return result;
}
CSAct = new Object;
function CSClickReturn () {
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; /* dont follow link */
	else return false; /* dont follow link */
}


// VerifyForm.action v3.8.5 - April, 2007
// &#169; Copyright 1999 by Walter Blady
// All rights reserved
var VFCorrectFlag, VFErrorMess = "", VFsent = false, VFListurl = "", VFPopUpurl, VFAction, VFTimeout, VFbackFlag, VFisCSS;
var VFBlankForm, VFNewWindow, VFCookieName, MPVFflag;
var browser = window.navigator.userAgent;
var VFisNN6 = browser.indexOf("Netscape6/") > -1 || browser.indexOf("Opera") > -1 || browser.indexOf("OmniWeb") > -1 || browser.indexOf("Safari/") > -1;
var VFisNN = window.navigator.appName.indexOf("Netscape") > -1;
var VFisIEWin = window.navigator.appName.indexOf("Explorer") > -1 && window.navigator.platform.indexOf("Win") > -1;
var VFisIE = window.navigator.appName.indexOf("Explorer") > -1;
var VFisW3C = document.getElementById ? true : false;
var VFvis = (VFisW3C || VFisIE4) ? "visible" : "show";
var VFhid = (VFisW3C || VFisIE4) ? "hidden" : "hide";
function WBVerifyForm(action) {
	VFBlankForm = true;
	VFCorrectFlag = true;
	VFAction = action;
	VFPopUpurl = "";
	VFListurl = "";
	VFisCSS = action[107].indexOf("Reference!") == -1 && action[107] != "#";
	VFbackFlag = (action[102] == 0);
	if (VFVersion() && action[1] != "") {
		VFCookieName = "VFC" + action[1];
		if (action[102] == 2 || action[102] == 3) VFHtmlHead(action);
		var myForm = window.document[action[1]];
		var dataForm = window.document.VFDataForm;
		myForm.errorLayer = action[110] != "" ? VFSGetBoxObj("", action[110]) : null;
		if (myForm.errorLayer) VFShowHide(myForm.errorLayer, VFhid);
		myForm.foundErrorFlag = false;
		if (navigator.appName == "Netscape" && !VFisW3C && action[2].length >0) {
			myForm = window.document[action[2]].document[action[1]];
		}
		if (!myForm) {
			VFmessFormName();
			return false;
		}
		for (var i = 0; i < myForm.elements.length; i++) {
			var element = myForm.elements[i];
			if (element.style) element.style.color = "#" + action[111];
		}
		if (action[102] == 4) return;
		var prevRadioGroup = "";
		for (var i = 0; i < myForm.elements.length; i++) {
			var element = myForm.elements[i];
			if (element.type == "text" || element.type == "textarea" || element.type == "password" || element.type == "file") {
				VFBlankForm = element.value == "";
				if (!VFBlankForm) break;
			}
			else if (element.type == "radio") {
				VFBlankForm = !(element.checked);
				if (!VFBlankForm) break;
			}
			else if (element.type == "checkbox") {
				VFBlankForm = !(element.checked);
				if (!VFBlankForm) break;
			}
			else if (element.type == "select-one") {
				VFBlankForm = !(element.selectedIndex > 0);
				if (!VFBlankForm) break;
			}
			else if (element.type == "select-multiple") {
				for (var j = 0; j < element.length; j++) {
					VFBlankForm = !(element.options[j].selected);
					if (!VFBlankForm) break;
				}
				if (!VFBlankForm) break;
			}
		}
		if (!VFBlankForm) {
			if (action[95]) {
				VFCorrectFlag = VFProfCheck(action, myForm);
			}
			if (VFCorrectFlag) {
				for (var i = 3; i < 93; i = i + 6) {
					if (action[i] != "") {
						var fieldName = action[98] ? VFGetASPName(myForm, action[i]) : action[i];
						if (!myForm[fieldName].type) {
							VFmessFieldName(action, i);
							return false;
						}
						var trimLine = null;
						if (myForm[fieldName].type == "select-one" && action[i+2] == 13) {
							eval("VF" + action[i+2] + "(action, i, myForm, fieldName)");
							var trimLine = "";
						}
						else if (!(myForm[fieldName][0])) {
							var trimLine = myForm[fieldName].value;
							if (trimLine == null) trimLine = "";
							var trimStart = (trimLine.search(/\S/) != -1) ? trimLine.search(/\S/) : 0;
							var trimEnd = trimLine.search(/\b\s*$/) != -1 ? (trimLine.search(/\b\s*$/) - trimStart) : trimLine.length - trimStart;
							trimLine = trimLine.substr(trimStart, trimEnd);
							myForm[fieldName].value = trimLine;
						}
						if (action[i+2] == 19 && action[i+3].substr(0,1) == "*") {
							var auto = action[i+3].substr(0,1), delim = action[i+3].substr(4,1), mode = action[i+3].substr(1,3).toLowerCase();
							if (auto == "*" && (mode == "ymd" || mode == "dmy" || mode == "mdy")) {
								VFGetDate(action, i, myForm, fieldName, mode, delim);
								continue;
							}
						}
						if (trimLine != "" || action[i+2] == 1 || action[i+2] == 26) {
							VFFieldModify = eval("VFCS" + action[i+4] + "(action, i, myForm, fieldName)");
							VFCorrectFlag = (eval("VF" + action[i+2] + "(action, i, myForm, fieldName)")) ? VFCorrectFlag : false;
							if (!VFCorrectFlag) {
								if (myForm[fieldName].type) {
									myForm[fieldName].style.color = "#" + action[105];
								}
							}
							if (!VFCorrectFlag && !myForm.foundErrorFlag) {
								myForm[fieldName].focus();
								myForm.foundErrorFlag = true;
							}
						}
						else if (action[i+5]) {
							VFErrorMess += VFmessRequired(action, i) +"\n";
							myForm.foundErrorFlag = true;
						}
					}
				}
			}
		}
		if (myForm.foundErrorFlag || VFBlankForm) {
			if (VFBlankForm) {
				VFErrorMess += VFmessBlank() + "\n";
				VFCorrectFlag = false;
			}
			if (action[102] != 2) VFHtmlFooter();
			if (action[108]) {
				VFGetData(myForm);
			}
			if (action[102] == 1 && myForm.errorLayer) {
				VFErrorMess = VFmessErrorsFound();
				VFMessage(myForm.errorLayer);
			}
			else if (action[102] == 2 || action[102] == 3) {
				if (!VFbackFlag) {
					var topp = 0, left = 0;
					if (action[102] == 1) { 
						left = (action[103] <= screen.availWidth) ? Math.round((screen.availWidth-action[103])/2) : 0;
						topp = (action[104] <= screen.availHeight) ? Math.round((screen.availHeight-action[104]-20)/2) : 0;
					}
					VFNewWindow = window.open("","VFnewWindow","top=" + topp + ",left=" + left + ",width=" + action[103] + ",height=" + action[104] + VFWindowChrome());
					VFTimeout2 = setTimeout("VFWriteNewWindow()", 500);
					return false;
				}
			}
		}
		else if (!myForm.foundErrorFlag) {
			if (action[96] && VFsent) {
				VFmessSubmit();
			}
			else {
				if (action[108]) {
					VFGetData(myForm);
				}
				var body = "";
				var to = action[97] ? dataForm.action : myForm.action;
				var mailto = MPVFflag && MPVFmailto != "" ? MPVFmailto : to + " ?subject=" + escape(myForm.name);
				if (action[99] > 0) {
					var pre = "", endpre = "", dilim = true;
					if (action[97] && action[99] == 1) {
						pre = "\<pre\>", endpre = "\<\/pre\>";
					}
					body = pre + escape(VFGetBody(myForm, dilim)) + endpre;
					if (action[101]) {
						alert(body);
						return false;
					}
					if (action[97]) {
						var content = mailto + " &body=" + body;
						window.location = content;
					}
					else if (dataForm.VFDataField) {
						dataForm.VFDataField.value = body;
						dataForm.submit();
					}
					VFsent = true;
				}
				else {
					var delim = false;
					body = escape(VFGetBody(myForm), delim);
					if (action[97]) {
						var content = mailto + " &body=" + body;
						window.location = content;
					}
					else {
						myForm.submit();
					}
					VFsent = true;
				}
				if (VFPopUpurl != 0 || VFListurl != "" || (VFAction[93].indexOf("Reference!") == -1  && VFAction[93] != "#")) {
					VFTimeout = setTimeout("VFGoUrl()", action[94] * 1000);
				}
			}
		}
	}
	return false;
}
function VFWriteNewWindow() {
	VFNewWindow.document.write(VFErrorMess);
	VFNewWindow.document.close();
	VFNewWindow.focus();
	return;
}
function VFGetASPName(myForm, fname) {
	for (var i = 0; i < myForm.length; i++) {
		if (myForm[i].name.indexOf(fname + "[") > -1 || myForm[i].name.indexOf(fname + "(") > -1) {
			fname = myForm[i].name;
			return fname;
		}
	}
	return fname;
}
function VFGoUrl() {
	clearTimeout(VFTimeout);
	if (VFPopUpurl != "") {
		window.location.href = VFPopUpurl;
	}
	else if (VFListurl != "") {
		window.location.href = VFListurl;
	}
	else if (VFAction[93].indexOf("Reference!") == -1 && VFAction[93] != "#") {
		window.location.href = VFAction[93];
	}
	return;
}
function VF0(action, i, myForm, fieldName) {
	VFBlankForm = false;
	return VFCorrectFlag = true;
}
function VF1(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		var fieldName3 = action[98] ? VFGetASPName(myForm, action[i+3]) : action[i+3];
		if ((myForm[fieldName].value != "" && myForm[fieldName3].value == "") || (myForm[fieldName].value == "" && myForm[fieldName3].value != "")) { 
			var secField = action[i+3];
			for (var j = 3; j < 93; j = j + 6) {
				if (action[j].indexOf(secField) > -1) {
					secField = action[j+1];
					break;
				}
			}
			VFCorrectFlag = false;
			VFBlankForm = false;
			VFErrorMess += VFmess1(action, secField, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF2(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	VFBlankForm = false;
	if (myForm[fieldName].value.search(/\d+/g) > -1) {
		VFCorrectFlag = false;
		VFErrorMess += VFmess2(action, i) + "\n";
	}
	return VFCorrectFlag;
}
function VF3(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	VFBlankForm = false;
	var regexpVF3 = new RegExp("^[0-9]+( [0-9]+)?$");
	if (!(regexpVF3.test(myForm[fieldName].value))) {
		VFCorrectFlag = false;
		VFErrorMess += VFmess3(action, i) + "\n";
	}
	return VFCorrectFlag;
}
function VF4(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[fieldName].value.length != parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess4(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF5(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[fieldName].value.length > parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess5(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF6(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		var nameArray = myForm[fieldName].value.split(" ");
		if (nameArray.length > parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess6(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF7(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[fieldName].value.length < parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess7(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF8(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		var nameArray = myForm[fieldName].value.split(" ");
		if (nameArray.length < parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess8(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF9(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		var fieldName3 = action[98] ? VFGetASPName(myForm, action[i+3]) : action[i+3];
		if (myForm[fieldName].value != myForm[fieldName3].value) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess9(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF10(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[fieldName].value != action[i+3]) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess10(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF11(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[fieldName].value.toLowerCase().indexOf(action[i+3].toLowerCase()) == -1) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess11(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF12(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	VFBlankForm = false;
	var matchFlag = (action[i+3].toLowerCase() == "list") ? true : false;
	if (eval("VFList_" + 1 + "()") != null) {
		for (var j = 1; eval("VFList_" + j + "()").toLowerCase() != "<end>"; j++) {
			if (!matchFlag) {
				VFCorrectFlag = eval("VFList_" + j + "()").toLowerCase().indexOf(myForm[fieldName].value.toLowerCase()) > -1;
			}
			else {
				VFCorrectFlag = myForm[fieldName].value.toLowerCase().indexOf(eval("VFList_" + j + "()").toLowerCase()) > -1;
			}
			if (VFCorrectFlag) {
				break;
			}
		}
		if (!VFCorrectFlag) {
			VFErrorMess += VFmess12(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF13(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	VFPopUpurl = "";
	if (myForm[fieldName].selectedIndex > 0) {
		VFPopUpurl = myForm[fieldName].options[myForm[fieldName].selectedIndex].value;
	}
	return VFCorrectFlag;
}
function VF14(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	VFBlankForm = false;
	var periodInName =  myForm[fieldName].value.indexOf(".") >= 0;
	var nameArray = myForm[fieldName].value.split(" ");
	var wrongNumber = nameArray.length < 2 || nameArray.length > 3;
	for (var j = 0; j < nameArray.length; j++) {
		if (nameArray[j].length < 2) {
			var badNameLength = true;
			break;
		}
	}
	if (periodInName || badNameLength || wrongNumber) {
		VFCorrectFlag = false;
		VFErrorMess += VFmess14(action, i) + "\n";
	}
	return VFCorrectFlag;
}
function VF15(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	VFBlankForm = false;
	if (myForm[fieldName].value.search(/^\w+((\.|-)\w+)*@\w+((\.|-)\w+)*\.\w+$/) == -1) {
		VFCorrectFlag = false;
		VFErrorMess += VFmess15(action, i) + "\n";
	}
	return VFCorrectFlag;
}
function VF16(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	VFBlankForm = false;
	var tempUrl = myForm[fieldName].value;
	tempUrl = tempUrl.replace(/\s*/g, "");
	tempUrl = tempUrl.replace(/(^[Hh].{1,6}\.{0,2}[Ww]{2,3}\.{0,2})|^[Ww]{2,3}\.{0,2}/, "http://www.");
	myForm[fieldName].value = tempUrl;
	var goodDots = tempUrl.match(/\./g).length >= 2;
	if (!goodDots) {
		VFCorrectFlag = false;
		VFErrorMess += VFmess16(action, i) + "\n";
	}
	return VFCorrectFlag;
}
function VF17(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		var formatDigits = action[i+3].match(/#/g);
		var cardDigits = myForm[fieldName].value.replace(/\D/g, "")
		if (cardDigits.length == formatDigits.length) {
			var finalNumber = action[i+3];
			for (var j = 0; j < finalNumber.length; j++) {
				finalNumber = finalNumber.replace(/#/, cardDigits.substr(j, 1));
			}
			myForm[fieldName].value = finalNumber;
		}
		else {
			VFErrorMess += VFmessFormating(action, i) + "\n";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF18(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		var formatDigits = action[i+3].match(/#/g);
		var phoneDigits = myForm[fieldName].value.replace(/\D/g, "");
		if (phoneDigits.length == formatDigits.length) {
			var finalNumber = action[i+3];
			for (var j = 0; j < finalNumber.length; j++) {
				finalNumber = finalNumber.replace(/#/, phoneDigits.substr(j, 1));
			}
			myForm[fieldName].value = finalNumber;
		}
		else {
			VFErrorMess += VFmessFormating(action, i) + "\n";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF19(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		var dateArray = myForm[fieldName].value.match(/\d+/g);
		if (dateArray.length > 0) {
			for (var j = 0; j < dateArray.length; j++) {
				dateArray[j] = dateArray[j].length < 2 ? "0" + dateArray[j] : dateArray[j];
			}
			var dateDigits = dateArray.join("");
		}
		var delim = action[i+3].substr(3,1), mode = action[i+3].substr(0,3).toLowerCase(), verified = true;
		if (mode == "ymd" || mode == "dmy" || mode == "mdy") {
			verified = VFValidateDate(dateArray, mode);
		}
		if (dateDigits && dateDigits.search(/\D+/) < 0 && verified) {
			if (mode == "ymd") var finalDate = "####" + delim + "##" + delim + "##";
			if (mode == "mdy" || mode == "dmy") var finalDate = "##" + delim + "##" + delim + "####";
			for (var j = 0; j < finalDate.length; j++) {
				finalDate = finalDate.replace(/#/, dateDigits.substr(j, 1));
			}
			myForm[fieldName].value = finalDate;
		}
		else {
			VFErrorMess += VFmessFormating(action, i) + "\n";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF20(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		var formatdec = action[i+3].substr(action[i+3].length - 3, 1);
		formatdec = formatdec == "." || formatdec == "," ? formatdec : ""
		var formatdel = "";
		var tempdec = "";
		var tempint = ""; 
		var formatArray = action[i+3].match(/,|\.| /g);
		if (formatArray) {
			formatdel = formatArray.length == 1 && formatdec != "" ? "" : formatArray[0];
		}
		var num = myForm[fieldName].value;
		var dec = "";
		if (num.search(/\.\d\d$|\.\d$|\.$|\,\d\d$|\,\d$|\,$/) > -1) {
			dec = num.substr(num.search(/\.\d\d$|\.\d$|\.$|\,\d\d$|\,\d$|\,$/, 99));
			num += dec.length == 1 ? "00" : "";
			num += dec.length == 2 ? "0" : "";
		}
		dec = dec.search(/\.|\,/) > -1;
		num = num.replace(/,|\.| /g, "");
		if (num.search(/\D+/g) == -1) {
			if (formatdec != "") {
				if (dec) {
					tempdec = formatdec + num.substr(num.length - 2, 2);
					tempint = num.substr(0, num.length - 2); 
				}
				else {
					tempdec = formatdec + "00";
					tempint = num;
				}
			}
			else {
				tempint = dec ? tempint = num.substr(0, num.length - 2) : num;
			}
			var finalNumber = "";
			if (formatdel != "") {
				for (var j = tempint.length - 3; j > 0; j = j - 3) {
					finalNumber = formatdel + tempint.substr(j, 3) + finalNumber;
				}
				if (j <= 0) finalNumber = tempint.substr(j, j+3) + finalNumber + tempdec;
			}
			else {
				finalNumber = tempint + tempdec;
			}
			 myForm[fieldName].value = finalNumber;
		}
		else {
			VFErrorMess += VFmessFormating(action, i) + "\n";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF21(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (!(parseInt(myForm[fieldName].value) == parseInt(action[i+3]))) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess2125(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF22(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (!(parseInt(myForm[fieldName].value) > parseInt(action[i+3]))) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess2125(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF23(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (!(parseInt(myForm[fieldName].value) >= parseInt(action[i+3]))) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess2125(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF24(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (!(parseInt(myForm[fieldName].value) < parseInt(action[i+3]))) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess2125(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF25(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (!(parseInt(myForm[fieldName].value) <= parseInt(action[i+3]))) {
			VFCorrectFlag = false;
			VFErrorMess += VFmess2125(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF26(action, i, myForm, fieldName) {
	VFCorrectFlag = true;
	var element = myForm[fieldName], selected = false;
	VFBlankForm = false;
	if (element[0] && (element[0].type == "radio" || element[0].type == "checkbox") && element.length > 1) {
		for (var j = 0; j < element.length; j++) {
			selected = element[j].checked;
			if (selected) break;
		}
	}
	else if (element.type == "radio") {
		selected = element.checked;
	}
	else if (element.type == "checkbox") {
		selected = element.checked;
	}
	else if (element.type == "select-one") {
		selected = element.selectedIndex > 0;
	}
	else if (element.type == "select-multiple") {
		for (var j = 0; j < element.length; j++) {
			selected = element.options[j].selected;
			if (selected) break;
		}
	}
	if (!selected) {
		VFCorrectFlag = false;
		VFErrorMess += VFmess2126(action, i) + "\n";
	}
	return VFCorrectFlag;
}
function VFCS0(action, i, myForm, fieldName) {
	return;
}
function VFCS1(action, i, myForm, fieldName) {
	myForm[fieldName].value = myForm[fieldName].value.toUpperCase();
	return;
}
function VFCS2(action, i, myForm, fieldName) {
	myForm[fieldName].value = myForm[fieldName].value.toLowerCase();
	return;
}
function VFCS3(action, i, myForm, fieldName) {
	myForm[fieldName].value = myForm[fieldName].value.toLowerCase();
	myForm[fieldName].value = myForm[fieldName].value.replace(/\s+/g, " ");
	var nameArray = myForm[fieldName].value.split(" ");
	for (var j = 0; j < nameArray.length; j++) {
		nameArray[j] = nameArray[j].substring(0, 1).toUpperCase() + nameArray[j].substring(1, nameArray[j].length);
	}
	myForm[fieldName].value = nameArray.join(" ");
	return;
}
function VFCS4(action, i, myForm, fieldName) {
	var mf = eval(myForm[fieldName]);
	mf.value = mf.value.toLowerCase();
	mf.value = mf.value.replace(/ +/g, " ");
	mf.value = mf.value.substring(0, 1).toUpperCase() + mf.value.substring(1, mf.value.length);
	mf.value = mf.value.replace(/\si\s/g, " I ");
	mf.value = mf.value.replace(/\si'/g, " I'");
	var nameArray;
	nameArray = myForm[fieldName].value.split(/\.\ .|\?\ .|!\ .|\.\r+.|\?\r+.|!\r+./g);
	punctArray = myForm[fieldName].value.match(/\.\ .|\?\ .|!\ .|\.\r+.|\?\r+.|!\r+./g);
	stringA = nameArray[0];
	if (punctArray) {
		for (var j = 0; j < punctArray.length; j++) {
			stringA += punctArray[j].toUpperCase() + nameArray[j+1];
		}
	}
	mf.value = stringA;
	if (mf.value.search(/\s$/) != -1) {
		mf.value = myForm[fieldName].value.substring(0, (mf.value.length)-1);
	}
	return;
}
function VFProfCheck(action, myForm, color) {
	VFCorrectFlag = true;
	if (eval("VFProfan()") != null) {
		var profList = VFProfan(), profFlag = false;
		var profArray = profList.split(/, */g);
		for (var i = 0; i < myForm.length; i++) {
			if (myForm[i].type == "text" || myForm[i].type == "textarea") {
				for (var j = 1; j < profArray.length; j++) {
					profFlag = myForm[i].value.toLowerCase().indexOf(profArray[j].toLowerCase()) > -1;
					if (profFlag) {
						myForm[i].style.color = "#" + color;
						var fieldDescr = "";
						for (var k = 3; k < 93; k = k + 6) {
							if (action[k] != "" && myForm[i].name == action[k]) {
								fieldDescr = action[k+1]
								break;
							}
						}
						fieldDescr = fieldDescr != "" ? fieldDescr : myForm[i].name;
						VFErrorMess += VFmessProfan(action, fieldDescr);
						VFCorrectFlag = false;
					}
				}	
			}
		}
	}
	return VFCorrectFlag;
}
function VFGetDate(action, i, myForm, fieldName, mode, delim) {
	var thisDate = new Date(), IEcorr = !VFisIE ? 1900 : 0;
	if (mode == "ymd") var a = thisDate.getYear()+IEcorr, b = thisDate.getMonth()+1, c = thisDate.getDate();
	if (mode == "mdy") var a = thisDate.getMonth()+1+"", b = thisDate.getDate()+"", c = thisDate.getYear()+IEcorr+"";
	if (mode == "dmy") var a = thisDate.getDate()+"", b = thisDate.getMonth()+1+"", c = thisDate.getYear()+IEcorr+"";
	var finalDate = a+delim+b+delim+c;
	myForm[fieldName].value = finalDate;
	return;
}
function VFValidateDate(dateArray, mode) {
	var array1 = new Array(31,28,31,30,31,30,31,31,30,31,30,31), array2 = new Array(31,29,31,30,31,30,31,31,30,31,30,31); 
	if (mode == "ymd") {
		var dayArray = (parseInt(dateArray[0]/4) + "").indexOf(".") > -1 ? array1 : array2;
		return dateArray[1] >= 1 && dateArray[1] <= 12 && dateArray[2] >= 1 && dateArray[2] <= dayArray[dateArray[1]-1];
	}
	else if (mode == "mdy") {
		var dayArray = (parseInt(dateArray[2]/4) + "").indexOf(".") > -1 ? array1 : array2;
		return dateArray[0] >= 1 && dateArray[0] <= 12 && dateArray[1] >= 1 && dateArray[1] <= dayArray[dateArray[0]-1];
	}
	else if (mode == "dmy") {
		var dayArray = (parseInt(dateArray[2]/4) + "").indexOf(".") > -1 ? array1 : array2;
		return dateArray[1] >= 1 && dateArray[1] <= 12 && dateArray[0] >= 1 && dateArray[0] <= dayArray[dateArray[0]-1];
	}
	else return false;
}
function VFGetBody(form, isDelim) {
	var quotes = "", delim = " ", sep = " - ";
	if (VFAction[99] == 1) delim = "\t";
	else if (VFAction[99] == 2) {
		delim = ',';
		quotes = '"';
	}
	var getArray = new Array(), finalArray = new Array();
	var getArrayName = new Array(), finalArrayName = new Array();
	for (var i = 0; i < form.elements.length; i++) {
		var element = form.elements[i];
		if ((VFAction[99] > 0 && element.type == "submit") || element.type == "reset" || element.type == "image" 
		|| element.type == null) {
			continue;
		}
		if (VFAction[3] == 1) {
			element.value = element.value.replace(/"/g, "'");
		}
		var datai = quotes + element.value + quotes;
		if (element.type == "select-one") {
			getArray[i] = isDelim ? datai : element.name + sep + element.value;
		}
		else if (element.type == "select-multiple") {
			var mArray = new Array();
			for (var j = 0; j < element.length; j++) {
				var dataj = quotes + element.options[j].value + quotes;
				if (element.options[j].selected) {
					mArray[j] = isDelim ? dataj : "  " + element.options[j].text + sep + dataj;
				}
				else {
					mArray[j] = isDelim ? quotes + quotes : "  " + element.options[j].text + sep + quotes + quotes;
				}
			}
			var m = delim + mArray.join(delim);
			getArray[i] = isDelim ? m : element.name + sep + m;
		}
		else if (element.type == "checkbox") {
			if (element.checked) {
				getArray[i] = isDelim ? datai : element.name + sep + datai;
			}
		}
		else if (element.type == "radio") {
			if (element.checked) {
				getArray[i] = isDelim ? datai : element.name + sep + datai;
			}
		}
		else {
			getArray[i] = isDelim ? datai : element.name + sep + datai;
		}
		getArrayName[i] = element.name;
	}
	var j = 0;
	for (var i = 0; i < getArray.length; i++) {
		if (getArray[i] != null) {
			finalArray[j] = getArray[i];
			finalArrayName[j] = getArrayName[i];
			j++;
		}
	}
	var body = !VFAction[100] ? finalArray.join(delim) : finalArrayName.join(delim) + "\n" + finalArray.join(delim);
	return body;
}
function VFGetData(form) {
	var getArray = new Array();
	for (var i = 0; i < form.elements.length; i++) {
		var element = form.elements[i];
		if (element.type == "submit" || element.type == "reset" || element.type == "image" 
		|| element.type == "password" || element.type == "hidden" || element.type == null) {
			continue;
		}
		else if (element.type == "select-one") {
			getArray[i] = element.selectedIndex > -1 ? element.selectedIndex : 0;
		}
		else if (element.type == "select-multiple") {
			var mArray = new Array();
			for (var j = 0; j < element.length; j++) {
				mArray[j] = element.options[j].selected ? 1 : 0;
			}
			var m = mArray.join("-");
			getArray[i] = m;
		}
		else if (element.type == "radio" || element.type == "checkbox") {
			getArray[i] = element.checked ? 1 : 0;
		}
		else {
			getArray[i] = element.value;
		}
	}
	var cookieCrumbs = getArray.join(",");
	VFCookieObject = new VFCookie(document, VFCookieName, VFAction[109], "/", "", 0);
	VFCookieObject.storeCookie(cookieCrumbs);
	return;
}
function VFPutData(form) {
	var cookieCrumbs = unescape(document.cookie);
	if (cookieCrumbs == "") return;
	var cookieArray = cookieCrumbs.split("; ");
	cookieCrumbs = "";
	for (var i = 0; i < cookieArray.length; i++) {
		if (cookieArray[i].indexOf(VFCookieName) != -1) {
			cookieCrumbs = cookieArray[i];
			break;
		}
	}
	if (cookieCrumbs == "") return;
	cookieCrumbs = cookieCrumbs.substr(cookieCrumbs.indexOf("=")+1, cookieCrumbs.length);
	var putArray = cookieCrumbs.split(",");
	for (var i = 0; i < putArray.length; i++) {
		var element = form.elements[i];
		if (element.type == "submit" || element.type == "reset" || element.type == "image" 
		|| element.type == "password" || element.type == "hidden" || element.type == null) {
			continue;
		}
		else if (element.type == "select-one") {
			form.elements[i].selectedIndex = parseInt(putArray[i]);
		}
		else if (element.type == "select-multiple") {
			var mArray = putArray[i].split("-");
			for (var j = 0; j < mArray.length; j++) {
				element.options[j].selected = mArray[j] == 1 ? true : false;
			}
		}
		else if (element.type == "radio" || element.type == "checkbox") {
			element.checked = putArray[i] == 1 ? true : false;
		}
		else {
			element.value = putArray[i];
		}
	}
	return;
}
new VFCookie();
VFCookie.prototype.storeCookie = VFStoreCookie;
function VFCookie(document, name, hours, path, domain, secure) {
	this.$document = document;
	this.$name = name;
	if (hours) this.$expires = new Date(new Date().getTime() + hours*86400000);
	else this.$expires = null;
	if (path) this.$path = path; else this.$path = null;
	if (domain) this.$domain = domain; else this.$domain = null;
	if (secure) this.$secure = secure; else this.$secure = false;
	return;
}
function VFStoreCookie(value) {
	if (value == null) value = "";
	for (var prop in this) {
		if (prop.charAt(0) == "$" || (typeof this[prop]) == "function") {
			continue;
		}
		if (value != "") value += "&";
		value += prop + ":" + escape(this[prop]);
	}
	var cookie = this.$name + "=" + value;
	if (this.$expires) cookie += "; expires=" + this.$expires.toGMTString();
	if (this.$path) cookie += "; path=" + this.$path;
	if (this.$domain) cookie += "; domain=" + this.$domain;
	if (this.$secure) cookie += "; secure=" + secure;
	this.$document.cookie = cookie;
	return;
}
function VFHtmlHead(action) {
	VFErrorMess = '<html> <head>\n';
	VFErrorMess += '<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">\n';
	VFErrorMess += '<title>' + VFmessTitle() + '</title>\n';
	if (VFisCSS) {
		VFErrorMess += '<style type="text/css" media="screen"><!' + '--\n';
		VFErrorMess += '#TextBox { position: absolute }\n';
		VFErrorMess += '--' + '></style>\n';
		VFErrorMess += '<link href="' + action[107] + '" rel="stylesheet" media="screen">\n';
	}
	VFErrorMess += '<script language="JavaScript1.2"> function VFCloseWindow() {\n';
	if (!VFbackFlag) {
		VFErrorMess += 'self.window.close(); return; } </' + 'script>\n';
	}
	VFErrorMess += '</head><body ';
	if (action[106].indexOf("Reference!") == -1 && action[106] != "#") {
		VFErrorMess += 'background="' + action[106] + '">\n';
	}
	else {
		VFErrorMess += 'bgcolor="' + "#000000" + '">\n';
	}
	if (VFisCSS) {
		VFErrorMess += '<div id="TextBox"><div class="TextBoxPadding">\n';
		VFErrorMess += VFmessErrorsFound() + '\n';
		VFErrorMess += '<p class="TextRegular">\n'
	}
	else {
		VFErrorMess += '<p><b>' + VFmessErrorsFound() + '</p></b>';
	}
	return;
}
function VFHtmlFooter() {
	VFErrorMess += '</p>\n';
	VFErrorMess += VFmessContact1() + '\n';
	VFErrorMess += VFmessContact2() + '\n';
	if (VFisCSS) { 
		VFErrorMess += '</div></div>\n';
		VFErrorMess += ' <a href="Javascript:VFCloseWindow()" class="rollover"></a>';
	}
	else {
		VFErrorMess += '<p><a href="Javascript:void(VFCloseWindow())"><b>';
		VFErrorMess += VFbackFlag ? VFmessBack() + '</b></a></p>' : VFmessClose() + '</b></a></p>\n';
	}
	VFErrorMess += '</body></html>';
	return;
}
function VFSGetBoxObj(frameName, boxName) {
	var path = frameName != "" ? frameName + "." : "";
	if (VFisW3C) {
		var layerObj = eval(path + 'document.getElementById("' + boxName + '")');
	}
	else if (VFisIE4) {
		var layerObj = eval(path + "document.all." + boxName);
	}
	else {
		var layerObj = VFFindLayerObject(path, boxName, 0);
	}
	if (!layerObj) layerObj = document.getElementById(boxName);
	return layerObj;
}
function VFFindLayerObject(path, layer, thisLayer) {
	if (thisLayer) {
		var thisDocument = eval(path + "thisLayer.document");
	}
	else {
		var thisDocument = eval(path + "document");
	}
	var layerObj = thisDocument[layer];
	if (layerObj) {
		return layerObj;
	}
	else {
		for (var i = 0; i < thisDocument.layers.length; i++) {
			layerObj = VFFindLayerObject("", layer, thisDocument.layers[i]);
			if (layerObj) {
				break;
			}
		}
	}
	return layerObj;
}
function VFShowHide(object, state) {
	if (VFisW3C || VFisIE4) {
		object.style.visibility = state;
	}
	else if (VFisNav4) {
		object.visibility = state;
	}
	return;
}
function VFMessage(layer) {
	layer.innerHTML = VFErrorMess;
	VFErrorMess = "";
	if (layer.style) VFShowHide(layer, VFvis);
	return;
}
function VFVersion() {
	return true;
}
//

// PassMaster.action v1.7.3 - July, 2002
// &#169; Copyright 1999 by Walter Blady
// All rights reserved
var PMisIE4 = navigator.appVersion.indexOf("MSIE 4") >= 0;
var PMW3C = document.getElementById ? true : false;
var PMisNav4 = navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) == 4;
var PMassID, PMassPassw;
function WBPassMaster(action) {
	if (PMVersion() && action[2].length > 0) {
		PMassID = "", PMassPassw = "";
		var myForm = window.document[action[1]];
		if (PMisNav4 && action[5] && action[6].length > 0) {
			var myForm = window.document[action[6]].document[action[1]]
		}
		var access = eval("PMass_" + "0"), defaultUrl = access();
		for (var i = 1; PMassID.toLowerCase() != "end"; i++) {
			access = eval("PMass_" + i);
			var pmurl = access();
			if ((PMassID.toLowerCase() != "end" || PMassID != "") && PMassPassw != "" && myForm[action[2]].value == PMassID && myForm[action[3]].value == PMassPassw) {
				var cookieCrumbs = PMassID + "&" + PMassPassw;
				PMCookieObject = new PMCookie(document, action[7], action[8], action[10], action[11], action[9]);
				PMCookieObject.storeCookie(cookieCrumbs);
				myForm[action[3]].value = "";
				var goURL = pmurl != "" ? pmurl : defaultUrl;
				if (goURL != "") {
					var params;
					if (action[4].length < 1) {
						window.location.href = goURL;
					}
					else {
						if (action[4].toLowerCase().indexOf("blank") != -1) {
							var PMNewWindow = window.open(goURL,"newWindow", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,favorites=yes,resizable=yes");
						}
						else {
							params = eval(action[4] + ".window.location");
							params.href = goURL;
						}
					}
				}
				return;
			}
		}
		myForm[action[3]].value = "";
		window.alert("The User ID or Password you entered is incorrect. Please try again.");
	}
	return;
}
function PMGetCookie(cookieTarget) {
	var cookieCrumbs = unescape(document.cookie);
	var cookieArray = cookieCrumbs.split("; ");
	cookieCrumbs = "";
	for (var i = 0; i < cookieArray.length; i++) {
		if (cookieArray[i].indexOf(cookieTarget) != -1) {
			PMCookieObject = new PMCookie(document, cookieTarget);
			PMCookieObject.loadCookie();
			cookieCrumbs = cookieArray[i];
			break;
		}
	}
	return cookieCrumbs;
}
function PMCounter(cookie, string) {
	var cookie = new PMCookie(document, cookie.$name, 0);
	cookie.loadCookie();
	if (!cookie.loadCookie() || cookie.password == null || cookie.userid == null) {
		cookie.password == null;
		cookie.userid == null;
	}
	cookie.visits = parseInt(cookie.visits) + 1;
	alert("This is visit number " + cookie.visits + " to this site.");
	var value = "";
	cookie.storeCookie();
	return;
}
new PMCookie();
PMCookie.prototype.storeCookie = PMStoreCookie;
PMCookie.prototype.loadCookie = PMLoadCookie;
function PMCookie(document, name, hours, path, domain, secure) {
	this.$document = document;
	this.$name = name;
	if (hours) this.$expires = new Date(new Date().getTime() + hours*86400000);
	else this.$expires = null;
	if (path) this.$path = path; else this.$path = null;
	if (domain) this.$domain = domain; else this.$domain = null;
	if (secure) this.$secure = secure; else this.$secure = false;
	return;
}
function PMStoreCookie(value) {
	if (value == null) value = "";
	for (var prop in this) {
		if (prop.charAt(0) == "$" || (typeof this[prop]) == "function") {
			continue;
		}
		if (value != "") value += "&";
		value += prop + ":" + escape(this[prop]);
	}
	var cookie = this.$name + "=" + value;
	if (this.$expires) cookie += "; expires=" + this.$expires.toGMTString();
	if (this.$path) cookie += "; path=" + this.$path;
	if (this.$domain) cookie += "; domain=" + this.$domain;
	if (this.$secure) cookie += "; secure=" + secure;
	this.$document.cookie = cookie;
	return;
}
function PMLoadCookie() {
	var cookies = this.$document.cookie;
	if (cookies == "") return false;
	var start = cookies.indexOf(this.$name + "=");
	if (start == -1) return false;
	start += this.$name.length + 1;
	var end = cookies.indexOf(";", start);
	if (end == -1) end = cookies.length;
	var value = cookies.substring(start, end);
	if (value == "") return true;
	var subArray = value.split("&");
	for (var i = 0; i < subArray.length; i++) {
		subArray[i] = subArray[i].split(":");
	}
	for (var i = 0; i < subArray.length; i++) {
		var nam = subArray[i][1] != null ? subArray[i][0] : "val" + i;
		var val = subArray[i][1] != null ? unescape(subArray[i][1]) : unescape(subArray[i][0])
		this[nam] = val;
	}
	return true;
}
function PMVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}
// 
function CSGotoLink(action) {
	if (action[2].length) {
		var hasFrame=false;
		for(i=0;i<parent.frames.length;i++) { if (parent.frames[i].name==action[2]) { hasFrame=true; break;}}
		if (hasFrame==true)
			parent.frames[action[2]].location = action[1];
		else
			window.open (action[1],action[2],"");
	}
	else location = action[1];
}

function CSOpenWindow(action) {
	var wf = "";	
	wf = wf + "width=" + action[3];
	wf = wf + ",height=" + action[4];
	wf = wf + ",resizable=" + (action[5] ? "yes" : "no");
	wf = wf + ",scrollbars=" + (action[6] ? "yes" : "no");
	wf = wf + ",menubar=" + (action[7] ? "yes" : "no");
	wf = wf + ",toolbar=" + (action[8] ? "yes" : "no");
	wf = wf + ",directories=" + (action[9] ? "yes" : "no");
	wf = wf + ",location=" + (action[10] ? "yes" : "no");
	wf = wf + ",status=" + (action[11] ? "yes" : "no");		
	window.open(action[1],action[2],wf);
}



