
function valide()
{
if(document.getElementById("recipient").value=="")
	{
		alert("Please enter Recipient");
		document.getElementById("recipient").focus();
		return false;
	}
/*
if(document.getElementById("name").value=="")
	{
		alert("Please enter Name");
		document.getElementById("name").focus();
		return false;
	}
if(document.getElementById("address").value=="")
	{
		alert("Please enter address");
		document.getElementById("address").focus();
		return false;
	}
*/
if(document.getElementById("emailaddress").value=="")
	{
		alert("Please enter Emailaddress");
		document.getElementById("emailaddress").focus();
		return false;
	}
	else
                                {
                                with (document.getElementById('emailaddress'))
                                {
                                apos=value.indexOf("@")
                                dotpos=value.lastIndexOf(".")
                                
                                if (apos<1||dotpos-apos<2)
                                {
                                alert("Please enter a valid e-mail address");
                                document.getElementById('emailaddress').value="";
                                document.getElementById('emailaddress').focus();
                                return false;
                                }
                                }
                                //is_validate = false ;
       }

if(document.getElementById("customername").value=="")
	{
		alert("Please enter Customername");
		document.getElementById("customername").focus();
		return false;
	}
if(document.getElementById("incllc").value=="")
	{
		alert("Please enter Incllc");
		document.getElementById("incllc").focus();
		return false;
	}
if(document.getElementById("purchaseaddress").value=="")
	{
		alert("Please enter Purchaseaddress");
		document.getElementById("purchaseaddress").focus();
		return false;
	}

if(document.getElementById("loanamount").value=="")
	{
		alert("Please enter Loanamount");
		document.getElementById("loanamount").focus();
		return false;
	}
if( isNaN(document.getElementById("loanamount").value) )
	{
    alert("Please enter a numberic value.");
	document.getElementById("loanamount").focus();
		return false;
	}
}