function checkForm(f) {
    theFrm = document.frmSS;
	hasDot = f.txtEmail.value.indexOf(".");
	hasAt = f.txtEmail.value.indexOf("@");
					
    if (f.txtName.value == "") {
		alert("Please enter your name.");
		f.txtName.focus();
		return false;
	}
	
	if (hasDot == -1 || hasAt == -1 || f.txtEmail.value == "") {
		alert("Please enter a valid email address.");
		f.txtEmail.focus();
		f.txtEmail.select();
		return false;
	}
	
	CheckNum = parseInt(f.txtContact.value);
	if(f.txtContact.value != "" && isNaN(CheckNum)) {
		alert("Please enter a numeric value for field Telephone");
		f.txtContact.select();
		f.txtContact.focus();
		return false;
	}
	
	if (f.txtMessage.value == "") {
		alert("Please enter your message.");
		f.txtMessage.focus();
		return false;
	}
	
    return true;
}