
 function validate()
 {
    with(window.document.ccoptin)
	 {
		if (ea.value == "")
		{	alert("Enter Email.");
			ea.focus(); return false;
		}
    if(!IsEmail(ea.value))
    {
      alert("Enter Correct Email.");
			ea.focus(); return false;
    }
    return true;
	}
	return false;
 }
function IsEmail(mail)
{
	var text  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  if(text.test(mail)==false){
     return false;
   }else{ return true;}
} 

