//<!--
																			
																		doTrim = function() {
																			return this.replace(/^\s*|\s*$/g,"");
																		}
																		String.prototype.trim = doTrim;
																	
																		function validation(frm)
																		{
																		
																			var validates = new Array();
																			validates[validates.length] = new Array("fname", "text", "First name");
																			validates[validates.length] = new Array("lname", "text", "Last name");
																			validates[validates.length] = new Array("email", "email", "Email address");
																			validates[validates.length] = new Array("q1", "radio", "Are you male or female?");
																			validates[validates.length] = new Array("q8", "radio", "Do you have any arthritis in your hands, arms, or shoulders?");
																			validates[validates.length] = new Array("q2", "radio", "How far do you hit your current lob wedge with a full swing?");
																			validates[validates.length] = new Array("q3", "radio", "How far do you typically hit your 7 iron IN THE AIR?");
																			validates[validates.length] = new Array("q4", "radio", "What clubs do you prefer have graphite shafts? Note: Shaft type has no effect on accuracy or distance.");
																			validates[validates.length] = new Array("q5", "radio", "What is the measurement of your left wrist to the floor when standing on a firm surface with street shoes on?");
																			validates[validates.length] = new Array("q6a", "radio", "What is the measurement of the crease in your wrist to the tip of your middle finger?");
																			validates[validates.length] = new Array("q6b", "radio", "What is the measurement of the base of your middle finger to its tip?");
																			validates[validates.length] = new Array("q7", "radio", "From 155 yards, flat ground, no wind, pin in center of green, which would you choose to hit?");
																			
																			var ereg = /^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/g;
																			var invalid = "";
																			
																			for (var i=0; i<validates.length; i++) {
																				if (eval("frm." + validates[i][0]) && document.getElementById("question_" + validates[i][0])) {
																					var obj = eval("frm." + validates[i][0]);
																					var objbox = document.getElementById("question_" + validates[i][0]);
																					objbox.style.backgroundColor = "";
																					objbox.style.padding = "none";
																					
																					if (validates[i][1] == "text") {
																						if (obj.value.trim() == "") {
																							invalid += validates[i][2] + "\n";
																							objbox.style.backgroundColor = "#ecefec";
																							objbox.style.padding = "1px 8px 4px 8px";
																						}
																					} else if (validates[i][1] == "email") {
																						if (obj.value.trim() == "" || !obj.value.match(ereg)) {
																							invalid += validates[i][2] + "\n";
																							objbox.style.backgroundColor = "#ecefec";
																							objbox.style.padding = "1px 8px 4px 8px";
																						}
																					} else if (validates[i][1] == "radio") {
																						var radval = false;
																						for (var j=0; j<obj.length; j++) {
																							if (obj[j].checked) {
																								radval = true;
																								break;
																							}
																						}
																						if (!radval) {
																							invalid += validates[i][2] + "\n";
																							objbox.style.backgroundColor = "#ecefec";
																							objbox.style.padding = "1px 8px 4px 8px";
																						}
																					}
																				}
																			}
																			
																			if (invalid != "") {
																				alert("The following questions were invalid or empty:\n\n" + invalid);
																			}
																			return (invalid == "");
																		}