// JavaScript Document

function varification(th)
{
	if(th.name.value=="")
	{
		alert("Please enter name");
		th.name.focus();
		return false;
	}
	
	if(th.tel.value=="")
	{
		alert("Please enter Tele phone no.");
		th.tel.focus();
		return false;
	}
	if(th.subject.value=="")
	{
		alert("Please enter subject");
		th.subject.focus();
		return false;
	}
	if(th.email.value=="")
	{
		alert("Please enter email");
		th.email.focus();
		return false;
	}
	if(th.pur_from.value=="")
	{
		alert("Please enter purchase from");
		th.pur_from.focus();
		return false;
	}
	if(th.text.value=="")
	{
		alert("Please enter Item no");
		th.text.focus();
		return false;
	}
	if(th.comp.value=="")
	{
		alert("Please enter your complaint");
		th.comp.focus();
		return false;
	}
	
	return true;
	
}

function varification1(th)
{
	if(th.name.value=="")
	{
		alert("Please enter name");
		th.name.focus();
		return false;
	}
	
	if(th.add.value=="")
	{
		alert("Please enter address.");
		th.add.focus();
		return false;
	}
	if(th.tel.value=="")
	{
		alert("Please enter tel#.");
		th.tel.focus();
		return false;
	}
	if(th.email.value=="")
	{
		alert("Please enter email");
		th.email.focus();
		return false;
	}
	if(th.pur_from.value=="")
	{
		alert("Please enter purchase from");
		th.pur_from.focus();
		return false;
	}
	if(th.receipt.value=="")
	{
		alert("Please enter receipt#");
		th.receipt.focus();
		return false;
	}
	if(th.date_purchased.value=="")
	{
		alert("Please enter your date purchased");
		th.date_purchased.focus();
		return false;
	}
	if(th.item1.value=="")
	{
		alert("Please enter your item#");
		th.item1.focus();
		return false;
	}
	if(th.qty.value=="")
	{
		alert("Please enter your qty");
		th.qty.focus();
		return false;
	}
	
	return true;
	
}