<!-- Hide script from older browsers
	function submitIt(form) {
	foundError = false;pathError = true;commaError = false;

		//make sure they register an e-mail address
		if (document.SMS.Email1.value == "details") {
			alert("Please register an e-mail address")
			document.SMS.Email1.focus()
			return false
		}
		//check for spaces in Email
		if (document.SMS.Email1.value != " ") {
        pathLen = document.SMS.Email1.value.length;
			for(var i=0; i<pathLen; i++) {
				ch = document.SMS.Email1.value.substring(i,i+1)
					if (ch == " ") {
            			commaError = true;
         			}
					if (ch == "@") {
						commaError = false;
         			}
			}
		}
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email1.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email1.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email1.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email1.focus()
        	return (false);
		}
		
		//if Email 2 isnt empty - check email address
		if(document.SMS.Email2.value != "details") {
		//check for spaces in Email
		if (document.SMS.Email2.value != " ") {
        pathLen = document.SMS.Email2.value.length;
			for(var i=0; i<pathLen; i++) {
				ch = document.SMS.Email2.value.substring(i,i+1)
					if (ch == " ") {
            			commaError = true;
         			}
					if (ch == "@") {
						commaError = false;
         			}
			}
		}
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email2.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email2.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email2.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email2.focus()
        	return (false);
		}
		}
		
		//If Email3 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email3.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email3.value != " ") {
			pathLen = document.SMS.Email3.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email3.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
					alert("here")

		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email3.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email3.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email3.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email3.focus()
        	return (false);
		}
		}
		
		//If Email4 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email3.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email4.value != "") {
			pathLen = document.SMS.Email4.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email4.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
		
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email4.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email4.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email4.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email4.focus()
        	return (false);
		}
		}
		
		//If Email5 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email5.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email5.value != "") {
			pathLen = document.SMS.Email5.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email5.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
		
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email5.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email5.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email5.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email5.focus()
        	return (false);
		}
		}
		
		//If Email6 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email6.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email6.value != "") {
			pathLen = document.SMS.Email6.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email6.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
		
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email6.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email6.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email6.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email6.focus()
        	return (false);
		}
		}
		
		//If Email7 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email7.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email7.value != "") {
			pathLen = document.SMS.Email7.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email7.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
		
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email7.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email7.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email7.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email7.focus()
        	return (false);
		}
		}
		
		//If Email8 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email8.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email8.value != "") {
			pathLen = document.SMS.Email8.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email8.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
		
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email8.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email8.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email8.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email8.focus()
        	return (false);
		}
		}
		
		//If Email9 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email9.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email9.value != "") {
			pathLen = document.SMS.Email9.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email9.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
		
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email9.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email9.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email9.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email9.focus()
        	return (false);
		}
		}
		
		//If Email10 contains a value other than "Enter e-mail address" then check e
		if (document.SMS.Email5.value != "details") {
		
		//check for spaces in Email
			if (document.SMS.Email10.value != "") {
			pathLen = document.SMS.Email10.value.length;
				for(var i=0; i<pathLen; i++) {
					ch = document.SMS.Email10.value.substring(i,i+1)
						if (ch == " ") {
							commaError = true;
						}
						if (ch == "@") {
							commaError = false;
						}
				}
			}
		
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email10.focus()
        	return (false);
		}
		//check for @ in Email
    	pathLen = document.SMS.Email10.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email10.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email10.focus()
        	return (false);
		}
		}
		//make sure they enter a name
		if (document.SMS.Name.value =="") {
			alert("Please enter a name")
			document.SMS.Name.focus()
			return false
		}
		//make sure they enter an organisation
		if (document.SMS.Organisation.value =="") {
			alert("Please enter an organisation")
			document.SMS.Organisation.focus()
			return false
		}
		//enter email address
		if (document.SMS.Email.value == "") {
			alert("Please enter an email address")
			document.SMS.Email.focus()
			return false
		}
		//check for spaces in Email1 address
		if (document.SMS.Email.value != " ") {
        pathLen = document.SMS.Email.value.length;
			for(var i=0; i<pathLen; i++) {
				ch = document.SMS.Email.value.substring(i,i+1)
					if (ch == " ") {
            			commaError = true;
         			}
					if (ch == "@") {
						commaError = false;
         			}
			}
		}
		if(foundError == false && commaError == true) {
			alert("Spaces are not permitted in Email addresses.");
			document.SMS.Email.focus()
        	return (false);
		}
		//check for @ in Email1 address
    	pathLen = document.SMS.Email.value.length;
		for(var i=0; i<pathLen; i++) {
        ch = document.SMS.Email.value.substring(i,i+1)
			if (ch == "@") {
				commaError = true;
			}
		}
		if(foundError == false && commaError == false) {
    		alert("Email addresses must include an '@' symbol.");
			document.SMS.Email.focus()
        	return (false);
		}
		
		//enter suburb/state
		if (document.SMS.Suburb.value == ""){
			alert("Please enter your Suburb/State")
			document.SMS.Suburb.focus()
			return false
		}
		
	}
//end hiding script-->
