<!--

isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;

function getelementbyid(myid) {
   if (isNS4){
        objElement = document.layers[myid];
     }else if (isIE4) {
        objElement = document.all[myid];
     }else if (isIE5 || isNS6) {
             objElement = document.getElementById(myid);
     }
return(objElement);
}


function sendform (nm) {// nm - form name

if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
	fnm = getelementbyid(nm);
}
else {
	fnm = document.forms[nm];
}

if(fnm.name.value == "")
{
	fnm.name.style.background="#E0ECFF";
	fnm.email.style.background="#ffffff";
	fnm.confirmemail.style.background="#ffffff";
	fnm.problem.style.background="#ffffff";
	alert("Please input your name.");
	fnm.name.focus();
	return false;
}

if(fnm.email.value == "")
{
	fnm.name.style.background="#ffffff";
	fnm.email.style.background="#E0ECFF";
	fnm.confirmemail.style.background="#ffffff";
	fnm.problem.style.background="#ffffff";
	alert("Please input your email.");
	fnm.email.focus();
	return false;
}

if(fnm.confirmemail.value == "")
{
	fnm.name.style.background="#ffffff";
	fnm.email.style.background="#ffffff";
	fnm.confirmemail.style.background="#E0ECFF";
	fnm.problem.style.background="#ffffff";
	alert("Please confirm your email.");
	fnm.confirmemail.focus();
	return false;
}

if(fnm.email.value != fnm.confirmemail.value)
{
	fnm.name.style.background="#ffffff";
	fnm.email.style.background="#E0ECFF";
	fnm.confirmemail.style.background="#E0ECFF";
	fnm.problem.style.background="#ffffff";
	alert("Fields 'Email' and 'Confirm email' do not match.");
	fnm.email.focus();
	return false;
}
if(fnm.problem.value == "")
{
	fnm.name.style.background="#ffffff";
	fnm.email.style.background="#ffffff";
	fnm.confirmemail.style.background="#ffffff";
	fnm.problem.style.background="#E0ECFF";
	alert("Please input your problem description.");
	fnm.problem.focus();
	return false;
}

return true;
}

//-->
