// JavaScript Document
//newsletter validation //
			
		function isEmail(st) 
		{
		
			if (st.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
			{
				return true;
			}	
			else
			{
				return false;
			}	
		}
		function CheckBlank()
		{
			if (document.getElementById('newsinput').value!="")
			{
			//alert(document.getElementById('newsinput').value);
			isEmail(document.getElementById('newsinput').value);
			
				if (isEmail(document.getElementById('newsinput').value))
				{
					document.forms['MoForm1'].submit();
				}
				else
				{
					alert('Please enter valid email address');
				}
			}
			else
			{
				alert('Please enter the email address');
			}
		}
		function clrfield()
		{
			document.MoForm1.newsinput.value= "";
		}