function valdate()
{
       if(document.forms["myform"].name.value=="")
		{
			alert("Give your name for further communication ");
			return;
		}
		else if(!document.forms["myform"].email.value.match(/^[A-Za-z0-9\._\-+]+@[A-Za-z0-9_\-+]+(\.[A-Za-z0-9_\-+]+)+$/))
		{
			alert("Give your e-mail address to get the link to download");
			return;
		}
       else if(document.forms["myform"].transID.value=="")
		{
			alert("Give your Transaction ID for further communication ");
			return;
		}
		//else if(document.forms["myform"].message.value=="")
		//{
			//alert("Add your message ");
			//return;
		//}	   
		
		//else if(!document.forms["myform"].read.checked)
		//{
		//	alert("You hav not accepted term of use");
		//	return;
		//}
		
		//else if(document.forms["myform"].sites.value=="")
		//{
		//	alert("Enter your sites for further communication");
		//	return;
		//}
    
	   else
	   {  document.myform.submit();
	   }		 
	
	
}
function verify()
{ 

	if(document.forms["myform"].cname.value=="")
		{
			alert("Give your name for further communication ");
			return;
		}
	
	else if(!document.forms["myform"].cmail.value.match(/^[A-Za-z0-9\._\-+]+@[A-Za-z0-9_\-+]+(\.[A-Za-z0-9_\-+]+)+$/))
		{
			alert("Give your e-mail address to recieve the link to download the template you purchase");
			return;
		}
	else if(document.forms["myform"].ctransID.value=="")
		{
			alert("Give your Transaction ID for further communication ");
			return;
		}

	else if(document.forms["myform"].cmail.value.match(/@[aA][oO][lL]\.[cC][oO][mM]/))
		{
			alert("Please don't use AOL e-mails because we have routing troubles with AOL.com. Use alternate e-mail address.");
			return;
		}
	
	
	 else if(document.forms["myform"].ptype[1].checked==true||document.forms["myform"].ptype[0].checked==true)
	 {       
	         if(document.forms["myform"].have_read.checked)
		      {
		
			    document.forms["myform"].action="http://www.icongalore.com/php-bin/process.php";
                //document.forms["myform"].action="http://www.icongalore.com/php-bin/process.php";
                document.forms["myform"].submit();
				}
				
		    else
		    {
			 alert("You have not accepted \"Terms of use!\"");
			 return;
			 }
			    
			 }
	else
	{  alert("please select a payment method");
	    return;
		   }
			 
			 		
			
	}
	


