
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 receive the link to download the icons you purchase");
			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"].cphone.value=="")
	{
		alert("Give your contact phone number in any proper format");
			
	}
	 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.logoangel.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;
		   }
			 
			 		
			
	}
	function CheckPhoneNumber(TheNumber) 
{
	var valid = true
	var GoodChars = "0123456789()-+ ."
	var i = 0
	if (TheNumber=="") 
	{
		valid = false
	}
	for (i =0; i <= TheNumber.length -1; i++) {
		if (GoodChars.indexOf(TheNumber.charAt(i)) == -1) {
			valid = false
		} // End if statement
	} // End for loop
	return valid
}

	
