<!--
		
		function checkForm() {
			var postForm = true;
			var firstName = document.Whitepaper_Download.FirstName.value;
			var lastName = document.Whitepaper_Download.LastName.value;
			var companyName = document.Whitepaper_Download.Company.value;
			var emailAddress = document.Whitepaper_Download.EmailAddress.value;
			var Title = document.Whitepaper_Download.Title.value;
			var Phone = document.Whitepaper_Download.Phone.value;
			
			
			if ( firstName.length == 0 || !isNaN(firstName) ) { 
				postForm = false;
				document.getElementById("fn_error").style.visibility = "visible";
				document.getElementById("fn_error").style.color = "#d80100";
			} else {
				document.getElementById("fn_error").style.visibility = "hidden";
			}
			if ( lastName.length == 0 || !isNaN(lastName) ) { 
				postForm = false;
				document.getElementById("ln_error").style.visibility = "visible";
				document.getElementById("ln_error").style.color = "#d80100";
			} else {
				document.getElementById("ln_error").style.visibility = "hidden";
			}
			if ( companyName.length == 0 || !isNaN(companyName) ) { 
				postForm = false;
				document.getElementById("cn_error").style.visibility = "visible";
				document.getElementById("cn_error").style.color = "#d80100";
			} else {
				document.getElementById("cn_error").style.visibility = "hidden";
			}
			if ( Title.length == 0 || !isNaN(Title) ) { 
				postForm = false;
				document.getElementById("t_error").style.visibility = "visible";
				document.getElementById("t_error").style.color = "#d80100";
			} else {
				document.getElementById("t_error").style.visibility = "hidden";
			}
			var PHONE_GOOD = phoneGood(Phone);
			
			if (!PHONE_GOOD) { 
				postForm = false;
				document.getElementById("p_error").style.visibility = "visible";
				document.getElementById("p_error").style.color = "#d80100";
			} else {
				document.getElementById("p_error").style.visibility = "hidden";
			}
						
			var hasAt = emailAddress.indexOf("@")
			var emailGood = false;
				if ( hasAt != -1 ) {
					var hasDot = emailAddress.indexOf(".",hasAt+3)
					if ( hasDot != -1 ) {
						if ( emailAddress.length - hasDot > 2 ) {
							emailGood = true;
						}
					}		
				}
				if ( emailGood ) {
					document.getElementById("ea_error").style.visibility = "hidden";
				} else {
					postForm = false;
					document.getElementById("ea_error").style.visibility = "visible";
					document.getElementById("ea_error").style.color = "#d80100";
				}
			
			
			if (postForm) {
				return true;
			} else {
				document.getElementById("errorText").style.display = "inline";
				location.href= "#error"
				return false;
			}
		}
		
		function phoneGood(pVal) {
			var isVal = false;      
				// Remove non-numeric characters
					phoneNew = pVal.replace(/\D/g,'');
			
				// Evaluate phone number 
					if (phoneNew.length >= 10) {
						isVal = true;
					} 			
			
			// Return true or false
				return isVal;
		}
		
		function checkUpdateForm() {
			var emailAddress = document.reqAlerts.EmailAddress.value;
			var errorText = "";
								
			var hasAt = emailAddress.indexOf("@")
			var emailGood = false;
				if ( hasAt != -1 ) {
					var hasDot = emailAddress.indexOf(".",hasAt+3)
					if ( hasDot != -1 ) {
						if ( emailAddress.length - hasDot > 2 ) {
							emailGood = true;
						}
					}	
				}
			if (!emailGood) {
				errorText = "Please enter a valid Email Address";
			}			
			if (emailAddress.length < 1 || emailAddress == "   enter your email address") {
				errorText = "Please enter your Email Address";
			}
			
			if (errorText.length > 0) {
				alert(errorText);
				return false;
			} else {
				return true;
			}
		}
		
		function checkContact() {
			
			var postForm = true;
			var firstName = document.Consultation_Request.FirstName.value;
			var lastName = document.Consultation_Request.LastName.value;
			var companyName = document.Consultation_Request.Company.value;
			var emailAddress = document.Consultation_Request.EmailAddress.value;
			var Title = document.Consultation_Request.Title.value;
			var Phone = document.Consultation_Request.Phone.value;
			
			
			if ( firstName.length == 0 || !isNaN(firstName) ) { 
				postForm = false;
				document.getElementById("fn_error").style.visibility = "visible";
				document.getElementById("fn_error").style.color = "#d80100";
			} else {
				document.getElementById("fn_error").style.visibility = "hidden";
			}
			
			if ( lastName.length == 0 || !isNaN(lastName) ) { 
				postForm = false;
				document.getElementById("ln_error").style.visibility = "visible";
				document.getElementById("ln_error").style.color = "#d80100";
			} else {
				document.getElementById("ln_error").style.visibility = "hidden";
			}
			if ( companyName.length == 0 || !isNaN(companyName) ) { 
				postForm = false;
				document.getElementById("cn_error").style.visibility = "visible";
				document.getElementById("cn_error").style.color = "#d80100";
			} else {
				document.getElementById("cn_error").style.visibility = "hidden";
			}
						
			var hasAt = emailAddress.indexOf("@")
			var emailGood = false;
				if ( hasAt != -1 ) {
					var hasDot = emailAddress.indexOf(".",hasAt+3)
					if ( hasDot != -1 ) {
						if ( emailAddress.length - hasDot > 2 ) {
							emailGood = true;
						}
					}		
				}
				if ( emailGood ) {
					document.getElementById("ea_error").style.visibility = "hidden";
				} else {
					postForm = false;
					document.getElementById("ea_error").style.visibility = "visible";
					document.getElementById("ea_error").style.color = "#d80100";
				}
			
			var PHONE_GOOD = phoneGood(Phone);
			
			if (!PHONE_GOOD) { 
				postForm = false;
				document.getElementById("ph_error").style.visibility = "visible";
				document.getElementById("ph_error").style.color = "#d80100";
			} else {
				document.getElementById("ph_error").style.visibility = "hidden";
			}
			
			if (postForm) {
				return true;
			} else {
				document.getElementById("errorText").style.display = "inline";
				location.href= "#error"
				return false;
			}
		}
	
	//-->
