// JavaScript Document

function rstform(frmname)
{
	alert(frmname);
	
	document.frmname.reset();
	return false;
}

function chkreqform()
{
	if (Trim(document.frmcontactus.Name.value) == "")
	{
		alert ("Please Enter Name");
		document.frmcontactus.Name.focus();
		return false;
	}
	if (Trim(document.frmcontactus.Email.value) == "")
	{
		alert ("Please Enter Email");
		document.frmcontactus.Email.focus();
		return false;
	}
	if (!isEmail(document.frmcontactus.Email.value))
	{
		alert ("Please Enter Proper Email");
		document.frmcontactus.Email.focus();
		return false;
	}
	if (Trim(document.frmcontactus.Phone.value) == "")
	{
		alert ("Please Enter Phone");
		document.frmcontactus.Phone.focus();
		return false;
	}

	if (Trim(document.frmcontactus.Comments.value) == "")
	{
		alert ("Please Enter Comment");
		document.frmcontactus.Comments.focus();
		return false;
	}

}


function chkreqpaypalform()
{
	if (Trim(document.frmpayment.paypalname.value) == "")
	{
		alert ("Please Enter Name");
		document.frmpayment.paypalname.focus();
		return false;
	}
	if (Trim(document.frmpayment.paypalemail.value) == "")
	{
		alert ("Please Enter Email");
		document.frmpayment.paypalemail.focus();
		return false;
	}
	if (!isEmail(document.frmpayment.paypalemail.value))
	{
		alert ("Please Enter Proper Email");
		document.frmpayment.paypalemail.focus();
		return false;
	}
	if (Trim(document.frmpayment.paypalinvoiceno.value) == "")
	{
		alert ("Please Enter Invoice Number");
		document.frmpayment.paypalinvoiceno.focus();
		return false;
	}

	if (Trim(document.frmpayment.paypalamt.value) == "")
	{
		alert ("Please Enter Amount");
		document.frmpayment.paypalamt.focus();
		return false;
	}
	if (Trim(document.frmpayment.paypalprojectdetails.value) == "")
	{
		alert ("Please Enter Project Details");
		document.frmpayment.paypalprojectdetails.focus();
		return false;
	}

}

function quickform()
{
	if (Trim(document.frmcontact.Name.value) == "")
	{
		alert ("Please Enter Name");
		document.frmcontact.Name.focus();
		return false;
	}
	if (Trim(document.frmcontact.Email.value) == "")
	{
		alert ("Please Enter Email");
		document.frmcontact.Email.focus();
		return false;
	}
	if (!isEmail(document.frmcontact.Email.value))
	{
		alert ("Please Enter Proper Email");
		document.frmcontact.Email.focus();
		return false;
	}
	if (Trim(document.frmcontact.comment.value) == "")
	{
		alert ("Please Enter Comment");
		document.frmcontact.comment.focus();
		return false;
	}

}



