function checkfields()
	{
	if(b_procedure() && b_firstname() && b_lastname() && b_tel() && b_email() && b_cemail() && b_country())
	document.form1.submit();
	}

function b_procedure()
	{
	var str = document.form1.inp_procedure.value;
	if (str == "")
	{
	alert("\nPlease Select Procedure if none select Others.");
	document.form1.inp_procedure.focus();
	return false;
	}
	return true;
	}
	
	
function b_firstname()
	{
	var str = document.form1.inp_fname.value;
	if (str == "" || str == "* First Name")
	{
	alert("\nPlease enter your First Name.");
	document.form1.inp_fname.focus();
	return false;
	}
	if (str.length < 2)
	{
	alert("\nInvalid name.\n\nPlease enter your First name.");
	document.form1.inp_fname.focus();
	return false;
	}
	return true;
	}
function b_lastname()
	{
	var str = document.form1.inp_lname.value;
	if (str == "" || str == "* Last Name")
	{
	alert("\nPlease enter your Last Name.");
	document.form1.inp_lname.focus();
	return false;
	}
	return true;
	}

function b_tel()
{
	var str = document.form1.inp_fone.value;
	if(str == "" || str == "* Phone Number"){alert("\nPlease enter your area code and phone number.");document.form1.inp_fone.focus();return false;}
	if(str.length < 7){alert("\n     Invalid phone number.\n\nPlease enter your area code and phone number.");document.form1.inp_fone.focus();return false;}
	for (var i = 0; i < str.length; i++) {
	var ch = str.substring(i, i + 1);
	if(( (ch < "+" || "+" < ch) && (ch < "/" || "/" < ch) && (ch < "0" || "9" < ch) && (ch < " " || " " < ch) && (ch < "-" || "-" < ch) && (ch < ")" || ")" < ch) && (ch < "(" || "(" < ch) )){alert("\nThe phone field does not accept letters. \n\nPlease enter your area code and phone number.");
	document.form1.inp_fone.focus();
	return false;}}
	return true;
	}

function b_email()
	{
	var str = document.form1.inp_email.value;
	if(str == "" || str == "* E-mail"){alert("\nPlease enter your Email address.");document.form1.inp_email.focus();return false;}
	if (str.indexOf("@") == -1 || str.indexOf(".") == -1){alert("\nPlease enter your Email address.");document.form1.inp_email.focus();return false;}return true;
	}

function b_cemail()
	{
	var str = document.form1.inp_conf_email.value;
	if(str == "" || str == "* E-mail" || str != document.form1.inp_email.value){alert("\nPlease enter your Email address.");document.form1.inp_conf_email.focus();return false;}
	if (str.indexOf("@") == -1 || str.indexOf(".") == -1)
	{
		alert("\nPlease enter your Email address.");document.form1.inp_conf_email.focus();return false;
	}
	return true;
	}

function b_country()
	{
	var str = document.form1.inp_country.value;
	if (str == "")
	{
	alert("\nPlease Select your Country.");
	document.form1.inp_country.focus();
	return false;
	}
	return true;
	}		
		