// JavaScript Document
function check_email(e){
	ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
	var check1=0;
	for(i=0; i < e.length ;i++)
	{
		if(ok.indexOf(e.charAt(i))<0)
		{ 
			return false;			
		}
		if(e.charAt(i)=='@'){
			check1=check1+1;	
		}
		
	} 
	if(check1==1){
		return true;
	}else{
		return false;
	}
}
function checkSignup(){
   
	var name=document.examsdownlaod.txt_name.value;
	var email=document.examsdownlaod.txt_mail.value;
	if(check_email(email)){
		if(name.length < 2){
			alert("You must enter the name (min. 3 characters).");
			return (false);
		}else{
			return true;	
		}
	}else{
		alert("Please Check Your Email Address. It Looks Wrong.");
		return (false);
	}
	return false;
}
