

function validate()
{
str="";
str2="";
if(document.myform.firstnam.value=="")
{
str+=" \"First Name\" ";
}
if(document.myform.bank.value=="")
{
str+=" \"Bank Address\" ";
}
if(document.myform.ref.value=="")
{
str+=" \"Your Order No\" ";
}
if(document.myform.lastnam.value=="")
{
str+=" \"Last Name\" ";
}
if(document.myform.address1.value=="")
{
str+=" \"Address\" ";
}
if(document.myform.city.value=="")
{
str+=" \"City\" ";
}
if(document.myform.country.value=="")
{
str+=" \"Country\" ";
}
if(document.myform.phone1.value=="")
{
str+=" \"Phone\" ";
}
if(document.myform.fax.value=="")
{
str+=" \"Fax\" ";
}
if(document.myform.pincode.value=="" || isNaN(document.myform.pincode.value))
{
str2+=" \"Postal Code\" ";
}
if(str != "")
{
alert("You have not entered the required "+str+" field!!");
return false;
}
if(str2 != "")
{
alert("PIN Code No. not in Proper Format");
return false;
}                  
}                  


