/* -- 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 */
}
function CSURLPopupShow(formName, popupName, target) {
	var form  = (!IsIE()&&CSBVers>=5)?document.forms[formName]:CSFindElement(formName);
	var popup = form.elements[popupName];
	window.open(popup.options[popup.selectedIndex].value, target);
	popup.selectedIndex = 0;
}

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) {
	var s=si.toUpperCase();
	var myID=id.toUpperCase()+":";
	var id1=s.indexOf(myID);
	if (id1==-1) return "";
	s=s.substring(id1+myID.length+1,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");
		if (style.top=="") style.top=CSGetStyleAttrValue(si,"top");
		if (style.width=="") style.width=CSGetStyleAttrValue(si,"width");
		if (style.height=="") style.height=CSGetStyleAttrValue(si,"height");
		if (style.visibility=="") style.visibility=CSGetStyleAttrValue(si,"visibility");
		if (style.zIndex=="") style.zIndex=CSGetStyleAttrValue(si,"z-index");
	}
}

// OpenPopUp 1.4 action by Nate Baldwin, www.mindpalette.com
function MPOpenPopup(action) {
var posX = 0;
var posY = 0;
if (action[4] == true) {
	posX = Math.round((screen.availWidth/2)-(action[2]/2));
	posY = Math.round((screen.availHeight/2)-(action[3]/2));
	} else {
	posX = action[12];
	posY = action[13];
	}
if (action[16] == true) {
	posX = 0;
	posY = 0;
	action[2] = screen.availWidth;
	action[3] = screen.availHeight;
	}
for (i=5; i<12; i++) {
	action[i] == true ? action[i] = "yes" : action[i] = "no";
	}
var windowOptions = "";
windowOptions += "width=" + action[2];
windowOptions += ",height=" + action[3];
windowOptions += ",resizable=" + action[11];
windowOptions += ",scrollbars=" + action[5];
windowOptions += ",menubar=" + action[6];
windowOptions += ",toolbar=" + action[9];
windowOptions += ",directories=" + action[7];
windowOptions += ",location=" + action[10];
windowOptions += ",status=" + action[8];
windowOptions += ",left=" + posX;
windowOptions += ",top=" + posY;
window.open(action[15], action[1], windowOptions);
if (action[14] != "" && action[14] != "#" && action[14] != "(EmptyReference!)" && action[14] != "(Empty Reference!)")
	window.location = action[14];
}
function CSCloseWindow() { 
if (self.parent.frames.length != 0) {
	self.parent.close()	
	} else {
	window.close()
	}
}

/* Best Pitch Pop & Slide v1.1.3 */
/* Javascript Action for Adobe GoLive */
/* ©2002 Best Pitch Multi Media (http://www.bestpitch.com) */
/* Developer: Charles Fahey (cfahey@bestpitch.com) */
/* This Build: December 3, 2002 */

function BPpopNslide(action) {
	var bpwp = "";
	bpwp = bpwp + "width=" + action[7];
	bpwp = bpwp + ",height=" + action[8];
	bpwp = bpwp + ",left=" + action[2];
	bpwp = bpwp + ",top=" + action[3];
	bpwp = bpwp + ",resizable=" + (action[9] ? "yes" : "no");
	bpwp = bpwp + ",scrollbars=" + (action[10] ? "yes" : "no");
	bpwp = bpwp + ",menubar=" + (action[11] ? "yes" : "no");
	bpwp = bpwp + ",toolbar=" + (action[12] ? "yes" : "no");
	bpwp = bpwp + ",directories=" + (action[13] ? "yes" : "no");
	bpwp = bpwp + ",location=" + (action[14] ? "yes" : "no");
	bpwp = bpwp + ",status=" + (action[15] ? "yes" : "no");
	bpwin = window.open(action[1],"best_pitch_pop_n_slide",bpwp);
	bpwin.focus()
	
	var hzdist = (action[4] - action[2]);
	var vtdist = (action[5] - action[3]);
	if (hzdist > vtdist) {
		var bphere = action[2];
		var bpthere = action[4];
	}
	else {
		var bphere = action[3];
		var bpthere = action[5];
	}
	var bpendleft = action[4];
	var bpendtop = action[5];
		for(steps = bphere ; steps <= (bpthere - 1) ; steps = steps + action[6]) {
			if (steps >= bpendleft) {
				var moveleft = 0;
			}
			else {
				var moveleft = action[6];
			}
			if (steps >= bpendtop) {
				var movetop = 0;
			}
			else {
				var movetop = action[6];
			}
			bpwin.moveBy(moveleft,movetop)
		}
}

function CSFieldValidate(action) { 
var form = action[1];
var elem = action[2];
var theEntry  = document.forms[form].elements[elem].value
var theFormElem = document.forms[form].elements[elem]
var badEntry = ""

	function theAlert () { 
	alert(action[6]);
	theFormElem.select();
	theFormElem.focus();
	}  	

	function isEmpty() { 
		if (theEntry == "") { 
		theAlert()
		} 	
	}

	function isNumber() { 
			if (theEntry == "") { 
			theAlert()
			} 		
		for (i=0; i<theEntry.length; i++) {  
			if (theEntry.charAt(i) < "0" || theEntry.charAt(i) > "9") {  
				badEntry = "notnumber"
				} 
			}  		
		if (badEntry == "notnumber") {
		theAlert()	
		}	
	} 
		
	function isAlpha() { 
			if (theEntry == "") { 
			theAlert()
			} 		
		for (i=0; i<theEntry.length; i++) {  
			if (theEntry.charAt(i) >= "0" && theEntry.charAt(i) <= "9") {  
				badEntry = "notalpha"
				} 
			}  		
		if (badEntry == "notalpha") {
		theAlert()	
		}	
	} 
				
	function requiredChars() {
	numofChars = theEntry.length
		if (numofChars != action[4]) {
			theAlert()
		} 
	}	

	function exactString() {
		if (theEntry != action[5]) {
			theAlert()
		} 
	}	
	
	function validEmail() {
		invalidChars = " /:,;"		
		if (theEntry == "") { 
			badEntry = "badEmail"
			}
		for (i=0; i < 5; i++)  {
			badChar = invalidChars.charAt(i)
				if (theEntry.indexOf(badChar,0) > -1) {
				badEntry = "badEmail"
				}
		}	
	atsignLoc = theEntry.indexOf("@",1)
		if (atsignLoc == -1) {
			badEntry = "badEmail"
		}		
		if (theEntry.indexOf("@",atsignLoc+1) > -1) {
		badEntry = "badEmail"
		}
	dotLoc = theEntry.indexOf(".",atsignLoc)
		if (dotLoc == -1) {
		badEntry = "badEmail"
		}
		if (dotLoc+3 > theEntry.length) {
		badEntry = "badEmail"
		}
		if (badEntry == "badEmail") {
		theAlert()
		}
	}

	function validCC() { 
	var theNumber = new Array(theEntry.length);
	var i = 0
	var total = 0
		for (i = 0; i < theEntry.length; ++i) {
		theNumber[i] = parseInt(theEntry.charAt(i))
		}
		for (i = theNumber.length -2; i >= 0; i-=2) {  
		theNumber[i] *= 2;							 
		if (theNumber[i] > 9) theNumber[i]-=9;			 
		}										 
		for (i = 0; i < theNumber.length; ++i) {
		total += theNumber[i];						 
		}	
		isinteger = total/10
		if(parseInt(isinteger)!=isinteger) {
		theAlert()
		}
	}
	
var type=action[3];
if(type==0) isEmpty()
else if(type==1) isNumber()
else if(type==2) isAlpha()
else if(type==3) requiredChars()
else if(type==4) exactString()
else if(type==5) validEmail()
else if(type==6) validCC()
}

		

// VerifyForm.action v3.8.4 - February, 2007
// © 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);
			}
			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] ? 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) {
	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) {
						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;
}
//-->



function CSOpenAlert(action) { alert(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];
}
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 newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (var i=0; i<array.length; i+=2) {
			img = null; var n = array[i];
			if (d.images) {img = d.images[n];}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (img) {img.src = array[i+1];}
		}
	}
}
function changeImages() {
	changeImagesArray(changeImages.arguments);
}