/* -- Adobe GoLive JavaScript Library */
/* -- Global Functions */
CSInit = new Array;
CSExit = new Array;
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 newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
mustInitImg = true;
function initImgID() {var di = document.images; if (mustInitImg && di) { for (var i=0; i<di.length; i++) { if (!di[i].id) di[i].id=di[i].name; } mustInitImg = false;}}
function findElement(n,ly) {
	var d = document;
	if (browserVers < 4)		return d[n];
	if ((browserVers >= 6) && (d.getElementById)) {initImgID; return(d.getElementById(n))}; 
	var cd = ly ? ly.document : d;
	var elem = cd[n];
	if (!elem) {
		for (var i=0;i<cd.layers.length;i++) {
			elem = findElement(n,cd.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}
function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (i=0;i<array.length;i+=2) {
			img = null; var n = array[i];
			if (d.images) {
				if (d.layers) {img = findElement(n,0);}
				else {img = d.images[n];}
			}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (!img && d.getElementsByName) {
				var elms = d.getElementsByName(n);
				if (elms) {
					for (j=0;j<elms.length;j++) {
						if (elms[j].src) {img = elms[j]; break;}
					}
				}
			}
			if (img) {img.src = array[i+1];}
		}
	}
}
function changeImages() {
	changeImagesArray(changeImages.arguments);
}
function toggleImages() {
	for (var i=0; i<toggleImages.arguments.length; i+=2) {
		if (selected == toggleImages.arguments[i])
			changeImagesArray(toggleImages.arguments[i+1]);
	}
}
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 */
}
/* -- Action Functions */
// VerifyForm.action v3.5.3 - August, 2004
// © Copyright 1999 by Walter Blady
// All rights reserved
var VFCorrectFlag, VFErrorMess, VFsent = false, VFListurl = "", VFPopUpurl, VFAction, VFTimeout, VFbackFlag, VFpresentURL, 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;
function WBVerifyForm(action) {
	VFBlankForm = true;
	VFCorrectFlag = true;
	VFAction = action;
	VFPopUpurl = "";
	VFListurl = "";
	var VFW3C = document.getElementById ? true : false;
	VFisCSS = action[107].indexOf("Reference!") == -1 && action[107] != "#";
	VFisPage = "";
	VFpresentURL = window.location.href, VFbackFlag = (action[102] == 0);
	if (VFVersion() && action[1] != "") {
		VFCookieName = "VFC" + action[1];
		VFHtmlHead(action);
		var myForm = window.document[action[1]];
		var dataForm = window.document.VFDataForm;
		if (navigator.appName == "Netscape" && !VFW3C && action[2].length >0) {
			myForm = window.document[action[2]].document[action[1]];
		}
		if (!myForm) {
			VFmessFormName();
			return false;
		}
		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" && myForm.elements[i].name != prevRadioGroup) {
				var group = myForm[myForm.elements[i].name];
				prevRadioGroup = myForm.elements[i].name
				if (group.length > 1) {
					for (var j = 0; j < group.length; j++) {
						VFBlankForm = !(group[j].checked);
						if (!VFBlankForm) break;
					}
					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);
			}
			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]) {
						VFmessFieldName(action, i);
						return false;
					}
					if (myForm[fieldName].type != "checkbox") {
						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 (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;	
						}
						else if (action[i+5]) {
							VFErrorMess += VFmessRequired(action, i) +"\n";
							VFCorrectFlag = false;
						}
					}
				}
			}
		}
		if (!VFCorrectFlag || VFBlankForm) {
			if (VFBlankForm) {
				VFErrorMess += VFmessBlank() + "\n";
				VFCorrectFlag = false;
			}
			VFHtmlFooter();
			if (action[108]) {
				VFGetData(myForm);
			}
			if (!VFbackFlag) {
				var topp = 0, left = 0;
				if (action[102] == 2) { 
					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(VFisPage,"VFnewWindow","top=" + topp + ",left=" + left + ",width=" + action[103] + ",height=" + action[104] + VFWindowChrome());
				VFTimeout2 = setTimeout("VFWriteNewWindow()", 500);
				return false;
			}
			else {
				VFTimeout2 = setTimeout("VFWriteWindow()", 500);
				return false;
			}
		}
		else if (VFCorrectFlag) {
			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) {
					VFTimeout = setTimeout("VFGoUrl()", action[94] * 1000);
				}
			}
		}
	}
	return false;
}
function VFWriteNewWindow() {
	VFNewWindow.document.write(VFErrorMess);
	VFNewWindow.document.close();
	VFNewWindow.focus();
	return;
}
function VFWriteWindow() {
	self.document.write(VFErrorMess);
	self.document.close();
	self.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) {
		window.location.href = VFAction[93];
	}
	return;
}
function VF0(action, i, myForm, fieldName) {
	VFBlankForm = false;
	return VFCorrectFlag;
}
function VF1(action, i, myForm, fieldName) {
	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) {
	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) {
	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) {
	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) {
	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) {
	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) {
	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) {
	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) {
	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;
			myForm[fieldName3].value = "";
			myForm[fieldName].value = "";
			VFErrorMess += VFmess9(action, i) + "\n";
		}
	}
	return VFCorrectFlag;
}
function VF10(action, i, myForm, fieldName) {
	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) {
	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) {
	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) {
	VFPopUpurl = "";
	if (myForm[fieldName].selectedIndex > 0) {
		VFPopUpurl = myForm[fieldName].options[myForm[fieldName].selectedIndex].value;
	}
	return VFCorrectFlag;
}
function VF14(action, i, myForm, fieldName) {
	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) {
	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) {
	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) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var formatArray = action[i+3].split(/ +/g);
		formatArray = formatArray.join("");
		var cardArray = myForm[fieldName].value.split(/ +/g);
		cardArray = cardArray.join("");
		if (cardArray.search(/\D+/) < 0 && cardArray.length == formatArray.length) {
			var finalNumber = action[i+3];
			for (var j = 0; j < formatArray.length; j++) {
				var finalNumber = finalNumber.replace(/#/, cardArray.substr(j, 1));
			}
			myForm[fieldName].value = finalNumber;
		}
		else {
			VFErrorMess += VFmessFormating(action, i) + "\n";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF18(action, i, myForm, fieldName) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var finalNumber = "";
		var formatArray = action[i+3].split(/\(|- *|\) *| +/g);
		if (formatArray[0] == "") {
			formatArray.shift();
		}
		formatArray = formatArray.join("");
		var phoneArray = myForm[fieldName].value.split(/\(|- *|\) *| +/g);
		if (phoneArray[0] == "") {
			phoneArray.shift();
		}
		phoneArray = phoneArray.join("");
		if (phoneArray.search(/\D+/) < 0 && phoneArray.length >= formatArray.length) {
			var tempNo = action[i+3];
			var newNo = phoneArray.substr(phoneArray.length-formatArray.length, phoneArray.length);
			var remainder = phoneArray.substr(0, phoneArray.length-formatArray.length);
			for (var j = 0; j < formatArray.length; j++) {
				var tempNo = tempNo.replace(/#/, newNo.substr(j, 1));
			}
			finalNumber = remainder.length > 0 ? remainder + " " + tempNo : tempNo;
			myForm[fieldName].value = finalNumber;
		}
		else {
			VFErrorMess += VFmessFormating(action, i) + "\n";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF19(action, i, myForm, fieldName) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var formatArray2 = action[i+3].split(/\/ *|- *|\. *|, *| +/g);
		formatArray = formatArray2.join("");
		var dateArray2 = myForm[fieldName].value.split(/\/ *|- *|\. *|, *| +/g);
		if (formatArray2.length > 1 && dateArray2.length > 1) {
			for (var j = 0; j < formatArray2.length; j++) {
				dateArray2[j] = dateArray2[j].length < formatArray2[j].length ? "0" + dateArray2[j] : dateArray2[j];
			}
		}
		dateArray = dateArray2.join("");
		if (dateArray.search(/\D+/) < 0 && dateArray.length == formatArray.length) {
			var finalNumber = action[i+3].toLowerCase();
			for (var j = 0; j < formatArray.length; j++) {
				var finalNumber = finalNumber.replace(/y|m|d/, dateArray.substr(j, 1));
			}
			myForm[fieldName].value = finalNumber;
		}
		else {
			VFErrorMess += VFmessFormating(action, i) + "\n";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF20(action, i, myForm, fieldName) {
	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) {
	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) {
	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) {
	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) {
	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) {
	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) {
	var element = myForm[fieldName], selected = false;
	VFBlankForm = false;
	if (element[0].type == "radio" && element.length > 1) {
		for (var j = 0; j < element.length; j++) {
			selected = element[j].checked;
			if (selected) break;
		}
	}
	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 VFCorrectFlag;
}
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) {
	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) {
						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 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 (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 {
				getArray[i] = isDelim ? quotes + quotes : element.name + sep + quotes + quotes;
			}
		}
		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';
	}
	else {
		VFErrorMess += 'window.location.href = "' + VFpresentURL + '"; return; } </' + 'script>\n';
	}
	VFErrorMess += '</head><body ';
	if (action[106].indexOf("Reference!") == -1 && action[106] != "#") {
		VFErrorMess += 'background="' + action[106] + '">\n';
	}
	else {
		VFErrorMess += 'bgcolor="' + action[105] + '">\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 VFVersion() {
	return parseInt(navigator.appVersion.charAt(0)) >= 4;
}
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}
function CSGoBack1() { history.back() }
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 + ",screenX=" + (screen.width-action[3])/2;
	wf = wf + ",left=" + (screen.width-action[3])/2;
	wf = wf + ",screenY=" + (screen.height-action[4])/2;
	wf = wf + ",top=" + (screen.height-action[4])/2;
	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");
	fen=window.open(action[1],action[2],wf);
}
/* EOF */
