// JavaScript Document
function onload()
{
	document.all.txtName.focus();
}

function trident_validation()
{

if(!isEmpty(document.trident_frm.txtName, "Name"))
return false;

if(!isEmpty(document.trident_frm.txtAddress, "Address"))
return false;

if(!isEmpty(document.trident_frm.txtEmail, "Email"))
return false;

if(!isEmpty(document.trident_frm.txtContact, "Contact Person"))
return false;

if(!isEmpty(document.trident_frm.txtOrg, "Name of the Organization"))
return false;

if(!isEmpty(document.trident_frm.txtEnquiry, "Enquiry"))
return false;


document.trident_frm.action = "send_enquiry.php";
document.trident_frm.submit();

}

// -- check for empty fields -- //
function isEmpty(obj, name)
{
var result = true;
if(obj.value == "")
{
alert("Please Enter "+ name + "...");
obj.focus();
result = false;
}
return result;
}
