
function fullcheck()
{
  var str=document.signup.email.value;
//alert(str);
 
     if (document.signup.name.value=="")
        {
           alert ("Blank space not allowed. Please fill the Name field.");
           document.signup.name.focus(); 
           return false;
	    }  
	 if (document.signup.email.value=="")
        {
           alert ("Blank space not allowed. Please fill the Email field.");
           document.signup.email.focus(); 
           return false;
	    }  
		
		
		if ((document.signup.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.signup.email.focus();
		return false;
		}
	
		if (document.signup.email.value.indexOf("@",1) == -1)
		{
			alert("Invalid E-Mail address");
			document.signup.email.focus();
			
			return(false);
		}
		if (document.signup.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.signup.email.focus();
			
			return(false);
		}
		if (document.signup.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.signup.email.focus();
		
			return(false);
		}
		if (document.signup.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.signup.email.focus();
			
			return(false);
		}
		
		if ((document.signup.email.value.lastIndexOf(".")) -(document.signup.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.signup.email.focus();
		
			return(false);
		}
		if (document.signup.vercode.value=="")
        {
           alert ("Blank space not allowed. Please fill with the value above.");
           document.signup.vercode.focus(); 
           return false;
	    }
		
		document.getElementById('before').style.display = 'none';
		document.getElementById('after').style.display = 'block';   
	  
}


function CallAlert(msg)
    {        
		document.getElementById('before').style.display = 'block';
		document.getElementById('after').style.display = 'none';		
		alert(msg);
    }
