// JavaScript Document
function checkForm(which)
	{
		//email validation
		var emailok = true;
		var URL = location.href;
		var temp = document.getElementById('req_Email');  // ## validate by id ##	
		var atsym = temp.value.indexOf('@');
		var period = temp.value.lastIndexOf('.');
		var space = temp.value.indexOf(' ');
		var length = temp.value.length - 1;
		if ((atsym < 1) || (period <= atsym+1) || (period == length ) || (space != -1))
		{ 
			var emailok = false;
			// ## You can change your Valid Email alert message here ##
			alert('###### VALID EMAIL REQUIRED ###### \n Please enter a Valid Email Address! \n\n An example of a Valid Email Address would be \n\n userid@email.com \n');
			temp.value='';
			temp.focus();
		}
		return emailok;
	
		//return true;
	}
	
					
	function disableEnterKey(e)
	{
		 var key;
		 if(window.event)
			  key = window.event.keyCode;     //IE
		 else
			  key = e.which;     //firefox
			  
		 if(key == 13)
			  return false;
		 else
			  return true;
	}