// -- Adobe GoLive JavaScript Library// -- Global FunctionsCSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[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;
}
// OUT utility Javascript library 1.4.3
// Script copyright 1999-2001 OUT Media Design GmbH. All rights reserved.
// This version needs the Adobe GoLive Netscape 6 Fix installed to work in NN6

var CSIsW3CDOM = CSIsW3CDOM; // declare variable in case the NN6 Fix isn't installed
if(!CSIsW3CDOM) { CSIsW3CDOM = false; } // define in case the NN6 Fix isn't installed

function OUTFindFrame(n,win) {
	var curFrames = win ? win.frames : top.frames;
	var frame = n=='' ? window : curFrames[n];
	if (!frame) {
		for (var i=0;i<curFrames.length;i++) {
			frame = OUTFindFrame(n,curFrames[i]);
			if (frame)
				return frame;
		}
	}
	return frame;
}

function OUTFindElement(n,ly,cmp) {
	if (cmp) n=OUTfindComponentElementName(n,ly);
	if (CSIsW3CDOM) { CSInitImgID();return document.getElementById(n); } 
	var curDoc = ly ? (ly.document ? ly.document : ly) : document;
	var elem = curDoc[n];
	if (!elem && curDoc.layers) { for (var i=0;i<curDoc.layers.length;i++) {
		elem = OUTFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}


// functions to search for AGL component objects named like this "Cmp003B4E7300brian"

function OUTfindComponentElementName(n,ly){
	var objn = '';
	var curDoc = ly ? (ly.document ? ly.document : ly) : (document.all ? document.all : document);
	if (CSIsW3CDOM) {
		curDoc = document.getElementsByTagName("*");
		for (var i=0; i<curDoc.length; i++) {
			objn = curDoc[i].name;
			if (objn && objn.indexOf("Cmp")==0 && objn.substr(13)==n) return objn;
 		}
	}
	else {
		for (objn in curDoc) {
			if (objn && objn.indexOf("Cmp")==0 && objn.substr(13)==n) return objn;
 		}
		if (!IsIE() && curDoc.layers) { for (var i=0;i<curDoc.layers.length;i++) {
			objn = OUTfindComponentElementName(n,curDoc.layers[i]);if (objn) return objn; }
		}
	}
	return null;
}


function OUTgetValuesFromURL(n) {
	var u=window.location.search;
	var a=new Array();
	if (u!="") {
		u=u.substring(u.indexOf('?')+1, u.length);
		u=u.split('&');
        for (var i=0; i<u.length; i++) { var p=u[i].split('='); if (p[0]==n) a[a.length]=p; }
	}
	return a;
}


function OUTcheckValueFromURL(n,v) {
	var a = OUTgetValuesFromURL(n);
	if (a) { for (var i in a) { if (a[i] && a[i][1]==v) return true; } }
	return false;
}
// OUT Lock Rollover Action Script Library 1.3.1
// Script copyright 1999, 2000 OUT Media Design GmbH. All rights reserved.

var OUTlckIm = new Object();
function OUTdoLckBtnIm(action,cmp) {
	var n = cmp ? OUTfindComponentElementName(action[1]) : action[1];
	var g = action[2];
	var img = null;
	if (document.images) {
		g = g ? "group_"+g : "group_all";
		if (!OUTlckIm[g]){//create group if not available
			eval("OUTlckIm."+g +" = new Object()");
			OUTlckIm[g].name='';OUTlckIm[g].main='';OUTlckIm[g].over='';
		} else if (OUTlckIm[g].name!=n) {
			var lckd = OUTlckIm[g].name;
			if (CSIm[lckd]) {//restore last locked image
				img = (!IsIE()) ? OUTFindElement(lckd,0) : document[lckd];
				if (img) {
					img.src = OUTlckIm[g].main;
					CSIm[lckd][0].src = OUTlckIm[g].main;
					CSIm[lckd][1].src = OUTlckIm[g].over;
				}
			}
		}
		if (CSIm[n] && OUTlckIm[g].name!=n) {//lock image
			//save new locked image
			OUTlckIm[g].main = CSIm[n][0].src;
			OUTlckIm[g].over = CSIm[n][1].src;
			OUTlckIm[g].name = n;
			//replace main & over with click image
			CSIm[n][0].src = CSIm[n][2].src;
			CSIm[n][1].src = CSIm[n][2].src;
		}
		//display image
		CSIShow(n,2);
		return true;
	}
	return false;
}
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);
}CSInit = new Array;
CSExit = new Array;
CSStopExecution = false;
function CSAction(array) { 
	return CSAction2(CSAct, array);
}
function CSAction2(fct, array) { 
	var result;
	for (var i=0;i<array.length;i++) {
		if(CSStopExecution) return false; 
		var actArray = fct[array[i]];
		if(actArray == null) return false; 
		var tempArray = new Array;
		for(var j=1;j<actArray.length;j++) {
			if((actArray[j] != null) && (typeof(actArray[j]) == "object") && (actArray[j].length == 2)) {
				if(actArray[j][0] == "VAR") {
					tempArray[j] = CSStateArray[actArray[j][1]];
				}
				else {
					if(actArray[j][0] == "ACT") {
						tempArray[j] = CSAction(new Array(new String(actArray[j][1])));
					}
				else
					tempArray[j] = actArray[j];
				}
			}
			else
				tempArray[j] = actArray[j];
		}			
		result = actArray[0](tempArray);
	}
	return result;
}
CSAct = new Object;
CSIm = new Object();
function CSIShow(n,i) {
	if (document.images) {
		if (CSIm[n]) {
			var img = (!IsIE()) ? CSFindElement(n,0) : document[n];
			if (img && typeof(CSIm[n][i].src) != "undefined") {img.src = CSIm[n][i].src;}
			if(i != 0)
				self.status = CSIm[n][3];
			else
				self.status = " ";
			return true;
		}
	}
	return false;
}
function CSILoad(action) {
	im = action[1];
	if (document.images) {
		CSIm[im] = new Object();
		for (var i=2;i<5;i++) {
			if (action[i] != '') { CSIm[im][i-2] = new Image(); CSIm[im][i-2].src = action[i]; }
			else CSIm[im][i-2] = 0;
		}
		CSIm[im][3] = action[5];
	}
}

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 CSButtonReturn () {
	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 false; // follow link
	else return true; // follow link
}
// -- Action Functions
function CSSetImageURL(action) {
	var img = null;
	if (document.images) {
		if (!IsIE()) img = CSFindElement(action[1],0);
		else img = document.images[action[1]];
		if (img) img.src = action[2];
	}
}
// OUT Lock Rollover in Frame Action
// Script copyright 2000, OUT Media Design GmbH. All rights reserved.

function OUTlckBtnImFrm(action) {
	var lckTarget = null;
	if (action[3]=='') lckTarget = window; else lckTarget = OUTFindFrame(action[3],0);
	if (action[4]) {//automatic
		var docDir = window.location.pathname;
		var lckBtn = '';
		if (action[1]) docDir=docDir.substring(docDir.indexOf(action[1])+action[1].length,docDir.length-1);
		docDir=docDir.substring(docDir.charAt(0)=='/'?1:0,docDir.lastIndexOf('.'));
		docDir=docDir.split('/');
		if(!action[6]) docDir.length-=1;
		if(docDir.length){
			if(action[4]==1) lckBtn=docDir[0];
			if(action[4]==2) lckBtn=docDir[docDir.length-1];
			if(action[4]==3) {for(var i=0; i<docDir.length; i++){lckBtn+=docDir[i];if(i<docDir.length-1)lckBtn+=action[5];}}
		}
		action[1]=lckBtn;
	}
	if (lckTarget && lckTarget.CSIShow && lckTarget.OUTdoLckBtnIm){
		lckTarget.OUTdoLckBtnIm(action,action[7]);
		return true;
	}
	return false;
}
// OUT Lock Rollover Action
// Script copyright 1999, OUT Media Design GmbH. All rights reserved.

function OUTlckBtnIm(action) {
	return OUTdoLckBtnIm(action,false);
}
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];
}
// VerifyForm.action v2.6 - July, 2001
// © Copyright 1999 by Walter Blady
// All rights reserved
var VFCorrectFlag, VFErrorMess, VFsent = false, VFListurl = "", VFPopUpurl, VFAction, VFTimeout, VFBlankForm;
function WBVerifyForm(action) {
	VFBlankForm = true;
	VFCorrectFlag = true;
	VFAction = action;
	VFPopUpurl = "";
	VFListurl = "";
	var IsNN6 = window.navigator.userAgent.indexOf("Netscape6") > 0;
	if (VFVersion()) {
		VFErrorMess = '<html> <head>'; 
		VFErrorMess += '<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">';
		VFErrorMess += '<title>VerifyForm Errors!</title>';
		VFErrorMess += '<script language="JavaScript1.2"> function VFCloseWindow() { self.window.close(); return; } </' + 'script>';
		VFErrorMess += '</head><body bgcolor="#ffffff">';
		VFErrorMess += "<p><b>Errors were found in your submission!</b></p>";
		var myForm = window.document[action[1]];
		if (navigator.appName == "Netscape" && !IsNN6 && action[2].length >0) {
			myForm = window.document[action[2]].document[action[1]];
		}
		for (var i = 0; i < myForm.length; i++) {
			if (myForm[i].type == "text" || myForm[i].type == "textarea" || myForm[i].type.type == "password") {
				if (myForm[i].value != "") {
					VFBlankForm = false;
					break;
				}
			}
			else if (myForm[i].type == "checkbox" || myForm[i].type == "radio") {
				if (myForm[i].checked) {
					VFBlankForm = false;
					break;
				}
			}
		}
		if (action[96]) {
			VFCorrectFlag = VFProfCheck(action, myForm);
		}
		for (var i = 3; i < 93; i = i + 6) {
			if (action[i] != "") {
				if (myForm[action[i]].type != "checkbox" || myForm[action[i]].type != "radio") {
					if (myForm[action[i]].type == "select-one") {
						eval("VF" + action[i+2] + "(action, i, myForm)");
						var trimLine = "";
					}
					else {
						var trimLine = myForm[action[i]].value;
						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[action[i]].value = trimLine;
					}
					if (trimLine != "" || action[i+2] == 1) {
						VFFieldModify = eval("VFCS" + action[i+4] + "(action, i, myForm)");
						VFCorrectFlag = (eval("VF" + action[i+2] + "(action, i, myForm)")) ? VFCorrectFlag : false;	
					}
					else if (action[i + 5]) {
						VFErrorMess += "Something must be entered in the <b>" + action[i+1] + "</b> field.<br>";
						VFCorrectFlag = false;
					}
				}
			}
		}
		if (!VFCorrectFlag || VFBlankForm) {
			if (VFBlankForm) {
				VFErrorMess += "You have not entered any information. This form will not be sent.<br>";
				VFCorrectFlag = false;
			}
			VFErrorMess += "<p><b>Please return to the order form page and check your entries, <br>then submit the form again.</b></p>";
			VFErrorMess += "<p>If you continue having problems, email us at the comments address in the footer to each page.</p>";
			VFErrorMess += '<p><a href="Javascript:void(VFCloseWindow())"><b>Close window</b></a></p></body></html>';
			var VFNewWindow = window.open("","VFnewWindow", "width=500,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes");
			VFNewWindow.document.open();
			VFNewWindow.document.write(VFErrorMess);
			VFNewWindow.document.close();
		}
		else {
			if (action[93] && VFsent) {
				alert("You have already clicked the Submit button.\nPlease refresh or reload this page to submit again.");
				VFCorrectFlag = false;
			}
			else {
				document.forms[action[1]].submit();
				VFsent = true;
				if (VFPopUpurl != "" || VFListurl != "" || VFAction[94] != "(Empty Reference!)") {
					VFTimeout = setTimeout("VFGoUrl()", action[95] * 1000);
				}
			}
		}
	}
	return VFCorrectFlag;
}
function VFGoUrl() {
	clearTimeout(VFTimeout);
	if (VFPopUpurl != "") {
		window.location.href = VFPopUpurl;
	}
	else if (VFListurl != "") {
		window.location.href = VFListurl;
	}
	else if (VFAction[94] != "(Empty Reference!)") {
		window.location.href = VFAction[94];
	}
	return;
}
function VF0(action, i, myForm) {
	VFBlankForm = false;
	return VFCorrectFlag;
}
function VF1(action, i, myForm) {
	if (action[i+3] != "") {
		if ((myForm[action[i]].value != "" && myForm[action[i+3]].value == "") || (myForm[action[i]].value == "" && myForm[action[i+3]].value != "")) { 
			var secField = action[i+3];
			for (var j = 3; j < 93; j = j + 6) {
				if (action[j] == secField) {
					secField = action[j+1];
					break;
				}
			}
			VFCorrectFlag = false;
			VFBlankForm = false;
			VFErrorMess += "The <b>" + action[i+1] + "</b> and <b>" + secField + " </b>fields must both be filled in.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF2(action, i, myForm) {
	if (myForm[action[i]].value.search(/\d+/g) > -1) {
		VFCorrectFlag = false;
		VFErrorMess += "Only letters are allowed in the <b>" + action[i+1] + "</b> field.<br>";
	}
	return VFCorrectFlag;
}
function VF3(action, i, myForm) {
	VFBlankForm = false;
	var regexpVF3 = new RegExp("^[0-9]+( [0-9]+)?$");
	if (!regexpVF3.test(myForm[action[i]].value)) {
		VFCorrectFlag = false;
		VFErrorMess += "Only numbers & spaces are allowed in the <b>" + action[i+1] + "</b> field.<br>";
	}
	return VFCorrectFlag;
}
function VF4(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[action[i]].value.length != parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += "The <b>" + action[i+1] + "</b> field must have exactly " + action[i+3] + " characters.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF5(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[action[i]].value.length > parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += "The <b>" + action[i+1] + "</b> field must have no more than " + action[i+3] + " characters.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF6(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var nameArray = myForm[action[i]].value.split(" ");
		if (nameArray.length > parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += "The <b>" + action[i+1] + "</b> field must have no more than " + action[i+3] + " words.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF7(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[action[i]].value.length < parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += "The <b>" + action[i+1] + "</b> field must have at least " + action[i+3] + " characters.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF8(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var nameArray = myForm[action[i]].value.split(" ");
		if (nameArray.length < parseInt(action[i+3])) {
			VFCorrectFlag = false;
			VFErrorMess += "The <b>" + action[i+1] + "</b> field must have at least " + action[i+3] + " words.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF9(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[action[i]].value != myForm[action[i+3]].value) {
			VFCorrectFlag = false;
			myForm[action[i+3]].value = "";
			myForm[action[i]].value = "";
			VFErrorMess += "Your <b>Password</b> and <b>Verification</b> or your <b>E-mail address</b> and <b>E-mail Confirmation</b> entries, as applicable to this form, are different. Please enter them again carefully.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF10(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[action[i]].value != action[i+3]) {
			VFCorrectFlag = false;
			VFErrorMess += "Your entry in the <b>" + action[i+1] + "</b> field is not correct.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF11(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		if (myForm[action[i]].value.toLowerCase().indexOf(action[i+3].toLowerCase()) == -1) {
			VFCorrectFlag = false;
			VFErrorMess += "Your entry in the <b>" + action[i+1] + "</b> field is not correct.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF12(action, i, myForm) {
	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[action[i]].value.toLowerCase()) > -1;
			}
			else {
				VFCorrectFlag = myForm[action[i]].value.toLowerCase().indexOf(eval("VFList_" + j + "()").toLowerCase()) > -1;
			}
			if (VFCorrectFlag) {
				break;
			}
		}
		if (!VFCorrectFlag) {
			VFErrorMess += "Your entry in the <b>" + action[i+1] + "</b> field is not correct.<br>";
		}
	}
	return VFCorrectFlag;
}
function VF13(action, i, myForm) {
	VFPopUpurl = myForm[action[i]].options[myForm[action[i]].selectedIndex].value;
	return VFCorrectFlag;
}
function VF14(action, i, myForm) {
	VFBlankForm = false;
	var periodInName =  myForm[action[i]].value.indexOf(".") >= 0;
	var nameArray = myForm[action[i]].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 += "Please enter your <b>First & Last Name</b> in the <b>" + action[i+1] + "</b> field.<br>";
	}
	return VFCorrectFlag;
}
function VF15(action, i, myForm) {
	VFBlankForm = false;
	if (myForm[action[i]].value.search(/^\w+((\.|-)\w+)*@\w+((\.|-)\w+)*\.\w+$/) == -1) {
		VFCorrectFlag = false;
		VFErrorMess += "The <b>E-mail address</b> in the <b>" + action[i+1] + "</b> field is not properly formatted.<br>";
	}
	return VFCorrectFlag;
}
function VF16(action, i, myForm) {
	VFBlankForm = false;
	var urlArray = myForm[action[i]].value.split(/ +/g);
	var tempUrl = urlArray != null ? urlArray.join("") : myForm[action[i]].value;
	var regexpVF12 = new RegExp("^(ftp:\/\/|http:\/\/)");
	var goodFormat = regexpVF12.test(tempUrl);
	if (!goodFormat) {
		tempUrl = "http://" + tempUrl;
	}
	myForm[action[i]].value = tempUrl;
	return VFCorrectFlag;
}
function VF17(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var formatArray = action[i+3].split(/ +/g);
		formatArray = formatArray.join("");
		var cardArray = myForm[action[i]].value.split(/ +/g);
		cardArray = cardArray.join("");
		if (cardArray.search(/\D+/) < 0 && cardArray.length == formatArray.length) {
			var finalNumber = action[i+3];
			for (j = 0; j < formatArray.length; j++) {
				var finalNumber = finalNumber.replace(/#/, cardArray.substr(j, 1));
			}
			myForm[action[i]].value = finalNumber;
		}
		else {
			VFErrorMess += "Your entry in the <b>" + action[i+1] + "</b> field has not been properly entered.<br>";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF18(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var finalNumber = "";
		var formatArray = action[i+3].split(/\(|- *|\) *| +/g);
		if (formatArray[0] == "") {
			formatArray.shift();
		}
		formatArray = formatArray.join("");
		var phoneArray = myForm[action[i]].value.split(/\(|- *|\) *| +/g);
		if (phoneArray[0] == "") {
			phoneArray.shift();
		}
		phoneArray = phoneArray.join("");
		if (phoneArray.search(/\D+/) < 0 && phoneArray.length >= formatArray.length) {
			var tempNo = action[i+3];
			var newNo = phoneArray.substr(phoneArray.length-formatArray.length, phoneArray.length);
			var remainder = phoneArray.substr(0, phoneArray.length-formatArray.length);
			for (j = 0; j < formatArray.length; j++) {
				var tempNo = tempNo.replace(/#/, newNo.substr(j, 1));
			}
			finalNumber = remainder.length > 0 ? remainder + " " + tempNo : tempNo;
			myForm[action[i]].value = finalNumber;
		}
		else {
			VFErrorMess += "The entry in the <b>" + action[i+1] + "</b> field has not been properly entered.<br>";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VF19(action, i, myForm) {
	if (action[i+3] != "") {
		VFBlankForm = false;
		var formatArray2 = action[i+3].split(/\/ *|- *|\. *|, *| +/g);
		formatArray = formatArray2.join("");
		var dateArray2 = myForm[action[i]].value.split(/\/ *|- *|\. *|, *| +/g);
		if (formatArray2.length > 1 && dateArray2.length > 1) {
			for (j = 0; j < formatArray2.length; j++) {
				dateArray2[j] = dateArray2[j].length < formatArray2[j].length ? "0" + dateArray2[j] : dateArray2[j];
			}
		}
		dateArray = dateArray2.join("");
		if (dateArray.search(/\D+/) < 0 && dateArray.length == formatArray.length) {
			var finalNumber = action[i+3].toLowerCase();
			for (j = 0; j < formatArray.length; j++) {
				var finalNumber = finalNumber.replace(/y|m|d/, dateArray.substr(j, 1));
			}
			myForm[action[i]].value = finalNumber;
		}
		else {
			VFErrorMess += "The entry in the <b>" + action[i+1] + "</b> field has not been properly entered.<br>";
			VFCorrectFlag = false;
		}
	}
	return VFCorrectFlag;
}
function VFCS0(action, i, myForm) {
	return VFCorrectFlag;
}
function VFCS1(action, i, myForm) {
	myForm[action[i]].value = myForm[action[i]].value.toUpperCase();
	return;
}
function VFCS2(action, i, myForm) {
	myForm[action[i]].value = myForm[action[i]].value.toLowerCase();
	return;
}
function VFCS3(action, i, myForm) {
	myForm[action[i]].value = myForm[action[i]].value.toLowerCase();
	myForm[action[i]].value = myForm[action[i]].value.replace(/\s+/g, " ");
	var nameArray = myForm[action[i]].value.split(" ");
	for (j = 0; j < nameArray.length; j++) {
		nameArray[j] = nameArray[j].substring(0, 1).toUpperCase() + nameArray[j].substring(1, nameArray[j].length);
	}
	myForm[action[i]].value = nameArray.join(" ");
	return;
}
function VFCS4(action, i, myForm) {
	var mf = eval(myForm[action[i]]);
	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[action[i]].value.split(/\.\ .|\?\ .|!\ .|\.\r+.|\?\r+.|!\r+./g);
	punctArray = myForm[action[i]].value.match(/\.\ .|\?\ .|!\ .|\.\r+.|\?\r+.|!\r+./g);
	stringA = nameArray[0];
	for (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[action[i]].value.substring(0, (mf.value.length)-1);
	}
	return;	
}
function VFProfCheck(action, myForm) {
	if (eval("VFProfan()") != null) {
		var profList = VFProfan(), profFlag = false;
		var profArray = profList.split(/, */g);
		for (var i = 0; i < myForm.length; i++) {
			if (myForm[i].type == "text" || myForm[i].type == "textarea") {
				for (var j = 1; j < profArray.length; j++) {
					profFlag = myForm[i].value.toLowerCase().indexOf(profArray[j].toLowerCase()) > -1;
					if (profFlag) {
						var fieldDescr = "";
						for (var k = 3; k < 93; k = k + 6) {
							if (action[k] != "" && myForm[i].name == action[k]) {
								fieldDescr = action[k+1]
								break;
							}
						}
						fieldDescr = fieldDescr != "" ? fieldDescr : myForm[i].name;
						VFErrorMess += "You have entered inappropriate information in the <b>" + fieldDescr + " </b>field.<br>";
						VFCorrectFlag = false;
						if (action[96] && action[97] != "(Empty Reference!)") {
							window.location.href = action[97];
						}
					}
				}	
			}
		}
	}
	return VFCorrectFlag;
}
function VFVersion() {
	return (navigator.appName.indexOf("Netscape") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4)
          || (navigator.appName.indexOf("Explorer") >= 0 && parseInt(navigator.appVersion.charAt(0)) >= 4);
}
// Script copyright 1999, Adobe Systems Incorporated. All rights reserved.

function CSSlideShowAuto(action) 
{
SSAfini=0
SSAnumimg=0
SSAmax=action[2]
SSAimgNom=action[1]
SSAtemps=action[3]*1000
if (action[4]==true) 
		{
		SSAstop=true
		}
	else SSAstop=false
var SSAimg = null;
	if (document.images) {
		if (!IsIE()) SSAimg = CSFindElement(SSAimgNom,0);
		else SSAimg = document.images[SSAimgNom];
str=SSAimg.src
n=str.length
p=n-6
SSApstr=str.substring(0,p)
SSAnimg=str.substring(p,p+2)
SSAformat=str.substring(p+2,n)
if (SSAformat==".jpg" || SSAformat==".JPG" || SSAformat==".gif" || SSAformat==".GIF")
{}
else
{
 alert("Image extension must be .jpg or .gif (case sensitive). Images must use 2 digit naming starting with 01, 02 ... plus extension")
}
if (SSAnimg.substring(0,1)=="0") 
{
SSAnumimg=Number(SSAnimg.substring(1,2))
}
else
{SSAnumimg=Number(SSAnimg)}


SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat)
}
}

function SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat)
{
setTimeout("slideAuto(SSAmax,SSAimgNom,SSAstop,SSApstr,SSAnimg,SSAformat)",SSAtemps)
}


function slideAuto(SSAmax,SSAimgNom,SSAstop,SSApstr,SSAnimg,SSAformat)
{
if (SSAfini==1) {
SSAnumimg = SSAnumimg-2
CSSlideShowAutoPause()
}
else 
{
SSAmax=SSAmax-1
SSAsuite=SSAnumimg+1
	if (SSAnumimg>SSAmax)
		{
		SSAsuite=1
		if (SSAstop==true) SSAfini=1
		else
		SSAfini=0
		}
	if (SSAnumimg<1) SSAsuite=1
SSAnumimg=SSAsuite
if (SSAsuite<10) {
	SSAaller="0"+SSAsuite
	}
	else SSAaller=SSAsuite
SSAsource=SSApstr+SSAaller+SSAformat
var SSAimg = null;
	if (document.images) {
		if (!IsIE()) SSAimg = CSFindElement(SSAimgNom,0);
		else SSAimg = document.images[SSAimgNom];
		if (SSAimg) SSAimg.src = SSAsource;
	}
SSAtempo(SSAmax,SSAimgNom,SSAtemps,SSAstop,SSApstr,SSAnimg,SSAformat)
}
}

function CSSlideShowAutoPause() 
{}// EOF