	//----------------------------
	//email validate starts here
	//----------------------------

	//validate form 
	function validateEmail(obj) {
		var email = obj.f_Email.value
		//if bad address display alert message and return false to form
		if (checkEmail(email)==false) {
			alert('Email address is invalid. Please try again.'); 
			return false;
		} else {
			return true;
			}
	}

	//check email entry
	function checkEmail(address) {
		//asume valid
		var goodAddress = true;
		//check address
		if (address == "") {goodAddress=false};
		if (address.indexOf ('@') == -1) {goodAddress=false};
		if (address.indexOf ('.') == -1) {goodAddress=false};
		//return true (good address) or false (bad address)
		return goodAddress;
	}

	//clear text box ehrn user clicks there
	function clearTextbox(obj) {
		if (obj.value == "Type Your Email Here") {
			obj.value=""
		}
	}

	//print message in text box if empty
	function messageInTextbox(obj) {
		if (obj.value == "") {
			obj.value="Type Your Email Here"
		}
	}