<!--
	var strLayerSwitch
	var strStyleSwitch
	var blnIE = false;
	var blnNS = false;
	var blnNS6 = false;
	var blnGecko = false;
	var strBroswerName = new String(navigator.appName);


	//Sniff browser and set dom elements to be used later.
	if (document.all) { //IE
		blnIE = true;
		strLayerSwitch = 'document.all';
		strStyleSwitch = '.style';
	} else if (document.getElementById) { //Netscape 6 / Gecko
		blnGecko = true;
		blnNS6 = true;	//set for backwards compatibility in case a given page didn't get updated to check for blnGecko instead
		strLayerSwitch = 'document.getElementById';
		strStyleSwitch = '.style';
	} else {	//NS
		blnNS = true;
		strLayerSwitch = 'document.layers';
		strStyleSwitch = '';
	}
			
//VALIDATE FORM
	function validateForm() {
		var objForm = document.frm_Comment;
		var blnErrRequiredFieldIsBlank = false;
		var blnErrBadZip = false;
		var blnErrBadDayPhone = false;
		var blnErrBadEmail = false;
		var blnErrBadEmailConfirm = false;
		var blnErrEmailNotConfirmed = false;
		var strError = new String('');
		var strColorErrorRed = '#ff0000';
		var strColorBlack = '#000000';
		var strBooleanOtherErrorsExist = new String('blnErrRequiredFieldIsBlank || blnErrBadZip || blnErrBadDayPhone || blnErrBadEmail || blnErrBadEmailConfirm || blnErrEmailNotConfirmed');
		var strTemp
		var strError

		clearErrors('errMsg', '&nbsp;');

		strTemp = objForm.NATURE.options[objForm.NATURE.selectedIndex].value;
		if (strTemp.length == 0) {
			blnErrRequiredFieldIsBlank = true;
			setProperty('lblNATURE', 'color', strColorErrorRed);
		} else {
			setProperty('lblNATURE', 'color', strColorBlack);
		}

		objForm.FIRST_NAME.value = jsTrim(objForm.FIRST_NAME.value);
		if (objForm.FIRST_NAME.value.length == 0) {
			blnErrRequiredFieldIsBlank = true;
			setProperty('lblFNAME', 'color', strColorErrorRed);
		} else {
			setProperty('lblFNAME', 'color', strColorBlack);
		}
											   
		objForm.LAST_NAME.value = jsTrim(objForm.LAST_NAME.value);
		if (objForm.LAST_NAME.value.length == 0) {
			blnErrRequiredFieldIsBlank = true;
			setProperty('lblLNAME', 'color', strColorErrorRed);
		} else {
			setProperty('lblLNAME', 'color', strColorBlack);
		}
			
		objForm.EMAIL.value = jsTrim(objForm.EMAIL.value);
		if (objForm.EMAIL.value.length == 0) {
			blnErrRequiredFieldIsBlank = true;
			setProperty('lblEMAIL', 'color', strColorErrorRed);
		} else {
			setProperty('lblEMAIL', 'color', strColorBlack);
		}

				
		objForm.CEMAIL.value = jsTrim(objForm.CEMAIL.value);
		if (objForm.CEMAIL.value.length == 0) {
			blnErrRequiredFieldIsBlank = true;
			setProperty('lblCEMAIL', 'color', strColorErrorRed);
		} else {
			setProperty('lblCEMAIL', 'color', strColorBlack);
		}

		objForm.COMMENTS.value = jsTrim(objForm.COMMENTS.value);
		if (objForm.COMMENTS.value.length == 0) {
			blnErrRequiredFieldIsBlank = true;
			setProperty('lblCOMMENTS', 'color', strColorErrorRed);
		} else {
			setProperty('lblCOMMENTS', 'color', strColorBlack);
		}


		// ***Check for other validation errors*********************
		if (!eval('(' + strBooleanOtherErrorsExist + ')')) {

			//Email Format
			if (!eval('(' + strBooleanOtherErrorsExist + ')') && parseEmail(objForm.EMAIL.value)) {
				blnErrBadEmail = true;
				setProperty('lblEMAIL', 'color', strColorErrorRed);
			}
					
			//Email-Confirm Format
			if (!eval('(' + strBooleanOtherErrorsExist + ')') && parseEmail(objForm.CEMAIL.value)) {
				blnErrBadEmailConfirm = true;
				setProperty('lblCEMAIL', 'color', strColorErrorRed);
			}

			//Email Confirmation
			if (!eval('(' + strBooleanOtherErrorsExist + ')') && !(objForm.EMAIL.value == objForm.CEMAIL.value)) {
				blnErrEmailNotConfirmed = true;
				setProperty('lblEMAIL', 'color', strColorErrorRed);
				setProperty('lblCEMAIL', 'color', strColorErrorRed);
			}

		}

		// ***Check Error variables and either notify of problem or submit*********************
		if (eval('(' + strBooleanOtherErrorsExist + ')')) {
			if (blnErrRequiredFieldIsBlank) {
				strError = 'Fields with an * are required.';
				objForm.NATURE.focus();
			} else if (blnErrBadEmail) {
				strError = 'The email format is incorrect.';
				objForm.EMAIL.focus();
			} else if (blnErrBadEmailConfirm) {
				strError = 'The email confirmation format is incorrect.';
				objForm.CEMAIL.focus();
			} else if (blnErrEmailNotConfirmed) {
				strError = 'The Email addresses do not match.';
				objForm.EMAIL.focus();
			}

			notifyUser('errMsg', strError, '');
			return false;

		} else {
			return true;
		}
	}
	
//NOTIFY USER

			function notifyUser(strElementId, strMessage, strFiller) {
				var oElement;
				
				if (document.getElementById && document.getElementById(strElementId)!=null && document.getElementById(strElementId).style.display!=null) {
					oElement = document.getElementById(strElementId);
					oElement.innerHTML = strMessage + strFiller;						//Write out the message to the element
					if (oElement.scrollIntoView!=null) oElement.scrollIntoView(true)	//Scroll the page so that the element containing the error message is visible
					oElement.style.display = 'block';

				} else if (document.all && document.all[strElementId]!=null && document.all[strElementId].style.display!=null) {
					oElement = document.all[strElementId];
					oElement.innerHTML = strMessage + strFiller;						//Write out the message to the element
					if (oElement.scrollIntoView!=null) oElement.scrollIntoView(true);		//Scroll the page so that the element containing the error message is visible
					oElement.style.display = 'block';

				} else {
					//replace any HTML characters and popup an alert box with the message.
					var strOutput = new String(strMessage);
					strOutput = strOutput.replace(new RegExp('<br.*?>','ig'), '\n');	// Replace any linebreaks
					strOutput = strOutput.replace(new RegExp('<.*?>','ig'), '');		// Replace any remaining html tags
					strOutput = strOutput.replace('&nbsp;', ' ');						// Replace any html spaces
					window.alert(strOutput);
				}
			}
// PARSE EMAIL

			function parseEmail(strEmail) {
				if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {
					return false;
				} else {
					return true;
				}

			}
// TRIM
			function jsTrim(sPhrase) {
				//start at the beginning and remove any spaces until a character is reached
				while ('' + sPhrase.charAt(0) == ' ') {
					sPhrase = sPhrase.substring (1, sPhrase.length);
				}
				
				//start at the end and remove any spaces until a character is reached
				while('' + sPhrase.charAt(sPhrase.length - 1) == ' ') {
					sPhrase = sPhrase.substring(0, sPhrase.length - 1);
				}
				
				while ('' + sPhrase.charAt(0) == '\t') {
					sPhrase = sPhrase.substring (1, sPhrase.length);
				}
				
				while('' + sPhrase.charAt(sPhrase.length - 1) == '\t') {
					sPhrase = sPhrase.substring(0, sPhrase.length - 1);
				}
				
				
				return sPhrase;
			}
// CLEAR ERRORS
			function clearErrors(strElementId, strFiller) {
				var oElement;
				if (document.getElementById && document.getElementById(strElementId)!=null && document.getElementById(strElementId).style.display!=null) {
					oElement = document.getElementById(strElementId);
					if (strFiller!=null) {
						oElement.innerHTML = strFiller;
					} else {
						oElement.innerHTML = '';
						oElement.style.display = 'none';
					}
				} else if (document.all && document.all[strElementId]!=null && document.all[strElementId].style.display!=null) {
					oElement = document.all[strElementId];
					if (strFiller!=null) {
						oElement.innerHTML = strFiller;
					} else {
						oElement.innerHTML = '';
						oElement.style.display = 'none';
					}
				}
			}

//SET PROPERTY
			function setProperty(strElementId, strStyleProperty, strPropertyValue) {
				if (blnIE || blnGecko) {
					var index = new String('');
					var tmp = new String(strElementId);
					var sObj = new String('');

					if (tmp.indexOf('[') != -1 && tmp.indexOf(']') != -1) {
						index = tmp.substring(tmp.indexOf('['), tmp.indexOf(']') + 1);
						strElementId = tmp.replace(index, '');

						if (blnIE) {
							//If Internet Explorer, then we use document.all to set the value.
							sObj = 'document.all[\'' + strElementId + '\']';
							index = '[' + index.substr(1, 1) + ']';
						} else if (blnGecko) {
							//If Gecko-based, we use the getElementById function to set the value
							sObj = 'document.getElementsByName(\'' + strElementId + '\')';
							index = '.item(' + index.substr(1, 1) + ')';
						}

						if ((eval(sObj) != null) && (eval(sObj + index) != null)) {
							sObj = sObj + index;
						}

					} else {

						if (blnIE) {
							//If Internet Explorer, then we use document.all to set the value.
							sObj = 'document.all[\'' + strElementId + '\']';
						} else if (blnGecko) {
							//If Gecko-based, we use the getElementById function to set the value
							sObj = 'document.getElementById(\'' + strElementId + '\')';
						}
					}

					if (eval(sObj) != null) {
						eval(sObj + '.style.' + strStyleProperty + '=\'' + strPropertyValue + '\';');
					}
				}
			}

/* General Sitewide JS functions */


// JUMP MENUS
// these allow the jump menu functionality for order mgmt and catalog display
function jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function jumpMenuGo(selName,targ,restore){
  var selObj = findObj(selName); if (selObj) jumpMenu(targ,selObj,restore);
}


// SIZED POPUP WINDOW
// used for detail and additional information popup windows
function popWin(theURL,winName,features) {
  window.open(theURL,winName,features);
}



// SUBMIT ONCE
// this lets the user only click the "submit" button once
// ensuring that they cannot submit credit card information
// more than once
var clickonce = false;
function checkout_submit_once(){
	if(clickonce==false){
		document.payment.submit();
		document.payment.proceed_to_confirmation.disabled = true;
		clickonce=true;
	}
}



//-->
