/* -- Adobe GoLive JavaScript Library */

CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
CSIsW3CDOM = ((document.getElementById) && !(IsIE()&&CSBVers<6)) ? true : false;
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { if (CSIsW3CDOM) return document.getElementById(s).style; else return CSFindElement(s,0);  }
CSIImg=false;
function CSInitImgID() {if (!CSIImg && document.images) { for (var i=0; i<document.images.length; i++) { if (!document.images[i].id) document.images[i].id=document.images[i].name; } CSIImg = true;}}
function CSFindElement(n,ly) { if (CSBVers<4) return document[n];
	if (CSIsW3CDOM) {CSInitImgID();return(document.getElementById(n));}
	var curDoc = ly?ly.document:document; var elem = curDoc[n];
	if (!elem) {for (var i=0;i<curDoc.layers.length;i++) {elem=CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}
function CSGetImage(n) {if(document.images) {return ((!IsIE()&&CSBVers<5)?CSFindElement(n,0):document.images[n]);} else {return null;}}
CSDInit=false;
function CSIDOM() { if (CSDInit)return; CSDInit=true; if(document.getElementsByTagName) {var n = document.getElementsByTagName('DIV'); for (var i=0;i<n.length;i++) {CSICSS2Prop(n[i].id);}}}
function CSICSS2Prop(id) { var n = document.getElementsByTagName('STYLE');for (var i=0;i<n.length;i++) { var cn = n[i].childNodes; for (var j=0;j<cn.length;j++) { CSSetCSS2Props(CSFetchStyle(cn[j].data, id),id); }}}
function CSFetchStyle(sc, id) {
	var s=sc; while(s.indexOf("#")!=-1) { s=s.substring(s.indexOf("#")+1,sc.length); if (s.substring(0,s.indexOf("{")).toUpperCase().indexOf(id.toUpperCase())!=-1) return(s.substring(s.indexOf("{")+1,s.indexOf("}")));}
	return "";
}
function CSGetStyleAttrValue (si, id, st) {
	var s=si.toUpperCase();
	var myID=id.toUpperCase()+":";
	var id1=s.indexOf(myID,st);
	if (id1==-1) return "";
	var ch=s.charAt(id1-1);
	if (ch!=" " && ch!="\t" && ch!="\n" && ch!=";" && ch!="{")
		return CSGetStyleAttrValue (si, id, id1+1);
	var start=id1+myID.length;
	ch=s.charAt(start);
	while(ch==" " || ch=="\t" || ch=="\n") {start++; ch=s.charAt(start);}
	s=s.substring(start,si.length);
	var id2=s.indexOf(";");
	return ((id2==-1)?s:s.substring(0,id2));
}
function CSSetCSS2Props(si, id) {
	var el=document.getElementById(id);
	if (el==null) return;
	var style=document.getElementById(id).style;
	if (style) {
		if (style.left=="") style.left=CSGetStyleAttrValue(si,"left",0);
		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top",0);
		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width",0);
		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height",0);
		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility",0);
		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index",0);
	}
}
function CSSetStyleVis(s,v) {
	if (CSIsW3CDOM){CSIDOM();document.getElementById(s).style.visibility=(v==0)?"hidden":"visible";}
	else if(IsIE())CSIEStyl(s).visibility=(v==0)?"hidden":"visible";
	else CSNSStyl(s).visibility=(v==0)?'hide':'show';
}
function CSGetStyleVis(s) {
	if (CSIsW3CDOM) {CSIDOM();return(document.getElementById(s).style.visibility=="hidden")?0:1;}
	else if(IsIE())return(CSIEStyl(s).visibility=="hidden")?0:1;
	else return(CSNSStyl(s).visibility=='hide')?0:1;
}
CSInit = new Array;
function CSScriptInit() {
if(typeof(skipPage) != "undefined") { if(skipPage) return; }
idxArray = new Array;
for(var i=0;i<CSInit.length;i++)
	idxArray[i] = i;
CSAction2(CSInit, idxArray);}
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 */
}

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);
}

function CSActionGroup (action) {
	for(var i=1;i<action.length;i++) { CSAction(new Array(action[i])); }
}

function CSShowHide(action) {
	if (action[1] == '') return;
	var type=action[2];
	if(type==0) CSSetStyleVis(action[1],0);
	else if(type==1) CSSetStyleVis(action[1],1);
	else if(type==2) { 
		if (CSGetStyleVis(action[1]) == 0) CSSetStyleVis(action[1],1);
		else CSSetStyleVis(action[1],0);
	}
}

function CSSetImageURL(action) {
	var img=CSGetImage(action[1]);
	if (img) img.src=action[2];
}

CSImages=new Array();
function CSPreloadImage(action) {
	if (document.images) { CSImages[CSImages.length]=new Image(); CSImages[CSImages.length-1].src=action[1]; }
}

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];
}










//NoSpam Action v1.1  AardActions by Jim Aardvark. Copyright 2003. seanclayton@tinkers-inc.co.uk

function JAnoSpam(action){
var user=action[1];
var domain=action[2];
var suffix=action[3];
var subject=action[4];
document.write('<a href="' + 'mailto:' + user + '@' + domain + suffix + '?subject=' + subject + '">' + user + '@' + domain + suffix + '</a>');

}
// 
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}


// The onBlurClose action 1.0 by michael ahgren www.GoLiveCentral.com
var delay=0
function MAonBlurClose(action){
delay=action[1]
onblur=cTimer
}
function cTimer(){
delay>0?setTimeout(shutD,delay*1000):shutD()
}
function shutD(){
self.close()
}
//
//

// 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] == 3 || action[102] == 4) VFHtmlHead(action);
		var myForm = window.document[action[1]];
		var dataForm = window.document.VFDataForm;
		myForm.errorLayer = action[110] != "" ? VFSGetBoxObj("", action[110]) : null;
		if (myForm.errorLayer) {
			myForm.errorLayer.innerHTML = "";
			if (myForm.errorLayer.style) {
				VFShowHide(myForm.errorLayer, VFhid);
			}
		}
		myForm.firstErrorFlag = 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] == 5) return;
		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, action[105]);
				if (!VFCorrectFlag) myForm.firstErrorFlag = true;
			}
			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) {
							var radioGroup = myForm[fieldName].length > 0 && myForm[fieldName][0].type == "radio";
							if (!radioGroup) {
								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.firstErrorFlag) {
								if (!radioGroup) myForm[fieldName].focus();
								myForm.firstErrorFlag = true;
							}
						}
						else if (action[i+5]) {
							VFErrorMess += VFmessRequired(action, i) +"\n";
							myForm.firstErrorFlag = true;
						}
					}
				}
			}
		}
		if (myForm.firstErrorFlag || VFBlankForm) {
			if (VFBlankForm) {
				VFErrorMess += VFmessBlank() + "\n";
				VFCorrectFlag = false;
			}
			if (action[102] == 3 || action[102] == 4) VFHtmlFooter();
			if (action[108]) {
				VFGetData(myForm);
			}
			if ((action[102] == 1 || action[102] == 2) && myForm.errorLayer) {
				if (action[102] == 1) VFErrorMess = VFmessErrorsFound();
				VFMessage(myForm.errorLayer);
			}
			else if (action[102] == 3 || action[102] == 4) {
				if (!VFbackFlag) {
					var topp = 0, left = 0;
					if (action[102] == 4) { 
						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.firstErrorFlag) {
			if (action[96] && VFsent) {
				VFmessSubmit();
			}
			else {
				if (action[108]) {
					VFGetData(myForm);
				}
				var body = "";
				var to = action[97] && action[99] > 0 && dataForm ? 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);
		var delim = action[i+3].substr(3,1), mode = action[i+3].substr(0,3).toLowerCase(), verified = false;
		if (dateArray) {
			if (mode == "ymd" || mode == "dmy" || mode == "mdy") {
				verified = VFValidateDate(dateArray, mode);
			}
			if (verified && 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("");
			}
		}
		if (dateArray && verified && 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 format = action[i+3];
		var num = myForm[fieldName].value;
		var format2isDec = format.search(/[\.,]#{2}$/) > -1;
		var format2DecIndex = format2isDec ? format.search(/[\.,]#{2}$/) : format.length;
		var num2isDec = num.search(/[\.,]\d{1,2}$/) > -1;
		var num2DecIndex = num2isDec ? num.search(/[\.,]\d{1,2}$/) : num.length;
		var numOfDec = num.length - num2DecIndex;
		var num2 = num2isDec ? num.substr(0, num2DecIndex).replace(/\D/g, "") : num.replace(/\D/g, "");
		var format2 = format2isDec ? format.substr(0, format2DecIndex).replace(/[\.\,\s]/g, "") : format.replace(/[\.\,\s]/g, "");
		if (num2.length > format2.length) return false;
		num = num.replace(/\D/g, "");
		if (format2isDec) {
			if (numOfDec == 0) num += "00";
			else if (numOfDec == 2) num += "0";
			else if (numOfDec > 3) num = num.substr(0, num2DecIndex + 2);
		}
		else if (!format2isDec && rd >= 1 && num2DecIndex > -1) num = num.substr(0, num2DecIndex);
		var newFormat = "", hashCounter = 0;
		for (var i = format.length-1; i >= 0 && hashCounter < num.length; i--) {
			newFormat = format.substr(i, 1) + newFormat;
			if (format.substr(i, 1) == "#") {
				hashCounter += 1;
			}
		}
		for (var i = 0; i < newFormat.length; i++) {
			newFormat = newFormat.replace(/#/, num.substr(i, 1));
		}
		myForm[fieldName].value = newFormat;
	}
	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 CSCallAction(action)
{
	CSAction(new Array(action[1]));
}


//\s*\S\s*\/\/.+\.$
// PassMasterVerify.action v1.3.2 - August, 2002
// &#169; Copyright 1999 by Walter Blady
// All rights reserved
//Main function.
function WBPassMasterVerify(action) {
	//If the Cookie field has an entry and the URL field is filled in.
	if (PMVVersion() && action[2].length > 0) {
		//Look for the Passmaster Cookie.
		var cookieCrumbs = PMVGetCookie(action[2]);
		//If a Cookie is found and the userID box is checked.
		if (cookieCrumbs) {
			var cookieArray = cookieCrumbs.split("&");
			var id = cookieArray[0].substr(cookieArray[0].indexOf("=")+1, 99), pw = cookieArray[1];
			//Load the default URL if there is one.
			var access = eval("PMass_" + "0"), defaultUrl = access();
			//Check all the passwords.
			for (var i = 1; PMassID.toLowerCase() != "end"; i++) {
				//Setup the Function pointer.
				access = eval("PMass_" + i);
				//Get the url.
				var pmurl = access();
				//If this is a valid visitor, send them to their protected page.
				if ((PMassID.toLowerCase() != "end" || PMassID != "") && PMassPassw != "" && id == PMassID && pw == PMassPassw) {
					//If a URL is specified in the list, use it, otherwise use the default.
					var goURL = pmurl != "" ? pmurl : defaultUrl;
					//If there is a URL.
					if (goURL != "") {
						//If this is the password page, go to the proper URL.
						if (action[1] == 0) {
							PMVGoURL(action, goURL);
							return;
						}
						//...else if the visitor loads this protected page and it is his listed URL, stay here.
						else if (action[1] == 1 && window.location.href.indexOf(goURL) > -1) {
							return;
						}
						//...else if, just stay here.
						else if (action[1] == 2) {
							return;
						}
					}
				}
			}
			//...else go to Exit page.
			PMVInvalidOut(action);
		}
		//Go to Exit page if no Cookie, otherwise stay on this page.
		else if (!cookieCrumbs) {
			PMVInvalidOut(action);
		}
	}
	return;
}
//Load the protected page.
function PMVGoURL(action, goURL) {
	var params;
	//If a frame and path are not specified, the load URL into parent window.
	if (action[4].length < 1) {
		window.location.href = goURL;
	}
	//Otherwise load URL into the frame or new window.
	else {
		//Has a window been asked for.
		if (action[4].toLowerCase().indexOf("blank") != -1) {
			var PMVNewWindow = window.open(goURL,"newWindow", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,favorites=yes,resizable=yes");
		}
		//Otherwise evaluate the frame and path parameters.
		else {
			params = eval(action[4] + ".window.location");
			//Load the URL into the frame.
			params.href = goURL;
		}
	}
	return;
}
//Return invalid users to the Exit URL.
function PMVInvalidOut(action) {
	//If invalid access, load exit URL and delete the protected page URL from the history list.
	if (action[1] == 1) {
		if (self.opener) {
			opener.location.replace(action[3]);
			self.window.close();
		}
		else {
			window.location.replace(action[3]);
		}
	}
	return;
}
//Get cookies.
function PMVGetCookie(cookieTarget) {
	//Get all the Cookies for this domain.
	var cookieCrumbs = unescape(document.cookie);
	var cookieArray = cookieCrumbs.split("; ");
	cookieCrumbs = "";
	//Locate the specific Cookie.
	for (var i = 0; i < cookieArray.length; i++) {
		if (cookieArray[i].indexOf(cookieTarget) != -1) {
			//Create the Cookie object.
			PMVCookieObject = new PMVCookie(document, cookieTarget);
			PMVCookieObject.loadCookie();
			//Get the full Cookie string.
			cookieCrumbs = cookieArray[i];
			break;
		}
	}
	return cookieCrumbs;
}
//Cookie object class.
new PMVCookie();
PMVCookie.prototype.loadCookie = PMVLoadCookie;
//Create a Cookie object.
function PMVCookie(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;
}
//Get a Cookie.
function PMVLoadCookie() {
	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);
	//Return if there is no value.
	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++) {
		//If no name, make a generic one - val(n).
		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;
}
//Browser check.
function PMVVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 3)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 2);
}
// 

// START FORM CALCULATOR 1.0.1 FUNCTIONS (www.mindpalette.com)
if (typeof MPFormCalcStoredVars == "undefined") var MPFormCalcStoredVars = new Array();
MPFormCalcStoredVars['val1var'] = 2000;
MPFormCalcStoredVars['val2var'] = 6000;
function MPFormCalcMain(action) {
	var formName = action[1];
	var field1 = MPFormCalcTrim(action[2]);
	var static1 = action[3];
	var var1 = action[4];
	var operation = action[5];
	var field2 = MPFormCalcTrim(action[6]);
	var static2 = action[7];
	var var2 = action[8];
	var roundOff = action[9];
	var forceDec = action[10];
	var absVal = action[11];
	var result_field = action[12];
	var result_id = action[13];
	var result_var = action[14];
	var round_type = action[15];
	var commas = action[16];
	var minSet = action[17];
	var minVal = parseFloat(action[18]);
	var maxSet = action[19];
	var maxVal = parseFloat(action[20]);
	var go = true;
	var numVal1 = 0;
	var numVal2 = 0;
	if (typeof document.forms[formName] == 'undefined') formName = 0;
	if (typeof document.forms[formName] == 'undefined') go = false;
	if (go) {
		var thisForm = document.forms[formName];
		numVal1 += MPFormCalcBuildNum(thisForm, field1, static1, var1);
		if (action[6] != '' || static2 != '' || var2 != '') {
			numVal2 += MPFormCalcBuildNum(thisForm, field2, static2, var2);
			numVal1 = MPFormCalcDoOp(numVal1, operation, numVal2);
			}
		if (minSet && numVal1 < minVal) numVal1 = minVal;
		if (maxSet && numVal1 > maxVal) numVal1 = maxVal;
		if (roundOff != '') numVal1 = MPFormCalcRound(numVal1, roundOff, round_type);
		if (absVal == true) numVal1 = Math.abs(numVal1);
		if (commas == true || forceDec > 0) numVal1 = MPFormCalcFormatString(numVal1, forceDec, commas);
		if (result_id != '') MPFormCalcDivText(result_id, numVal1);
		if (result_var != '') MPFormCalcStoredVars[result_var] = numVal1;
		if (result_field != '') thisForm.elements[result_field].value = numVal1;
		}
	}
function MPFormCalcVarType(thisField) {
	var fieldType = false;
	if (typeof thisField.type != 'undefined') fieldType = thisField.type;
	if (!fieldType) if (thisField[0].type != 'undefined') fieldType = 'group';
	if (!fieldType) fieldType = 'undefined';
	return fieldType;
	}
function MPFormCalcInArray(needle, haystack) {
	results = false;
	for (var n=0; n<haystack.length; n++) {
		if (haystack[n] == needle) {
			results = true;
			break;
			}
		}
	return results;
	}
function MPFormCalcTrim(inString) {
	var frontIndex = 0;
	var backIndex = inString.length - 1;
	var trimList = new Array(" ", "\t", "\n", "\r");
	while (MPFormCalcInArray(inString.charAt(frontIndex), trimList)) frontIndex++;
	while (MPFormCalcInArray(inString.charAt(backIndex), trimList)) backIndex--;
	return inString.substring(frontIndex, (backIndex + 1));
	}
function MPFormCalcTrimArray(thisArray) {
	var results = new Array();
	var count = 0;
	for (var n=0; n<thisArray.length; n++) {
		var thisVal = MPFormCalcTrim(thisArray[n]);
		if (thisVal != '') {
			results[count] = MPFormCalcTrim(thisArray[n]);
			count++;
			}
		}
	return results;
	}
function MPFormCalcDoOp(num1, operation, num2) {
	results = 0;
	if (operation == 1) results = num1 - num2;
		else if (operation == 2) results = num1 * num2;
		else if (operation == 3) results = num1 / num2;
		else if (operation == 4) results = num1 + ((num2 / 100) * num1);
		else if (operation == 5) results = num1 - ((num2 / 100) * num1);
		else results = num1 + num2;
	return results;
	}
function MPFormCalcGetNum(thisString) {
	thisString = thisString+"";
	var result = "";
	var regEx =  /^[0-9.]/;
	for (var n=0; n<thisString.length; n++) {
		var thisChar = thisString.charAt(n);
		if (regEx.test(thisChar)) result += thisChar;
		}
	if (result == '.' || result == 'NaN') result = 0;
	result = (result == '') ? 0 : parseFloat(result);
	if (result == "NaN") result = 0;
	return result;
	}
function MPFormCalcBuildNum(thisForm, fields, staticVal, varVal) {
	var numVal = 0;
	numVal += MPFormCalcGetNum(staticVal);
	if (varVal != '') {
		if (typeof MPFormCalcStoredVars[varVal] != "undefined") numVal += MPFormCalcGetNum(MPFormCalcStoredVars[varVal]);
		}
	if (fields != '') {
		fieldList = MPFormCalcTrimArray(fields.split(','));
		for (var n=0; n<fieldList.length; n++) {
			thisField = fieldList[n];
			if (thisField != '' && typeof thisForm.elements[thisField] != 'undefined') thisField = thisForm.elements[thisField];
			numVal += MPFormCalcFlatten(thisField);
			}
		}
	return numVal;
	}
function MPFormCalcFlatten(passedField) {
	var numVal = 0;
	fieldArray = (MPFormCalcVarType(passedField) != "group") ? new Array(passedField) : passedField;
	for (var n=0; n<fieldArray.length; n++) {
		var thisField = fieldArray[n];
		var fieldType = MPFormCalcVarType(thisField);
		if (fieldType == "text" || fieldType == "textarea" || fieldType == "hidden" || fieldType == "password") {
			numVal = MPFormCalcDoOp(numVal, 0, MPFormCalcGetNum(thisField.value));
			} else if (fieldType == "select-one")
			numVal = MPFormCalcDoOp(numVal, 0, MPFormCalcGetNum(thisField.options[thisField.options.selectedIndex].value));
			else if (fieldType == "select-multiple") {
			var thisSum = 0;
			for (var i=0; i<thisField.length; i++) {
				if (thisField.options[i].selected) {
					var selection = MPFormCalcGetNum(thisField.options[i].value);
					thisSum += selection;
					}
				}
			numVal = MPFormCalcDoOp(numVal, 0, thisSum);
			}
			else if (fieldType == "checkbox" || fieldType == "radio") {
			if (typeof thisField.length != "undefined") {
				var thisSum = 0;
				for (var i=0; i<thisField.length; i++) {
					if (thisField[i].checked) thisSum += MPFormCalcGetNum(thisField[i].value);
					}
				numVal = MPFormCalcDoOp(numVal, 0, thisSum);
				} else if (thisField.checked) {
				numVal = MPFormCalcDoOp(numVal, 0, MPFormCalcGetNum(thisField.value));
				}
			}
		}
	return numVal;
	}
function MPFormCalcRound(number, places, type) {
	var precision = (places != 0) ? Math.pow(10, Math.abs(places)) : 0;
	if (places > 0) number = number * precision;
		else if (places < 0) number = number / precision;
	if (type == 2) number = Math.ceil(number);
		else if (type == 1) number = Math.floor(number);
		else number = Math.round(number);
	if (places > 0) number = number / precision;
		else if (places < 0) number = number * precision;
	return number;
	}
function MPFormCalcSplitIntDec(number) {
	string = number+'';
	if (string.indexOf('.') > -1) var results = string.split('.');
		else results = new Array(string, '');
	return results;
	}
function MPFormCalcFormatString(number, force, commas) {
	var string = number+"";
	if (force > 0) {
		var temp = MPFormCalcSplitIntDec(string);
		var integer = temp[0];
		var decimal = temp[1];
		while (decimal.length < force) { decimal+="0" };
		string = integer+'.'+decimal;
		}
	if (commas) {
		var temp = MPFormCalcSplitIntDec(string);
		var integer = temp[0];
		var decimal = '.'+temp[1];
		var last = (integer.length - 1);
		if (last > 2) {
			var results = "";
			var n = last;
			while (n>-1) {
				x = 1;
				while (x<4 && n>-1) {
					results = string.charAt(n) + results;
					n--;
					x++;
					}
				if (n>-1) results = ','+results;
				}
			string = results+decimal;
			}
		}
	return string;
	}
function MPFormCalcDivText(div, text) {
	if (document.layers) {
		if (typeof eval("document."+div+".document") != "undefined") {
			with (eval("document."+div+".document")) {
				open();
				write("<"+"HTML"+"><"+"HEAD"+"><"+"/HEAD"+"><"+"BODY"+">"+text+"<"+"/BODY"+"><"+"/HTML"+">");
				close();
				}
			}
		} else if (document.all && typeof document.all[div] != "undefined") {
		document.all[div].innerHTML = text;
		} else if (document.getElementById && !document.all && typeof document.getElementById(div) != "undefined") {
		document.getElementById(div).innerHTML = text;
		}
	}
// END FORM CALCULATOR 1.0 FUNCTIONS
//

