// Verify contact form

function verifyContactShort() {
    try {
	    if (document.getElementById('qname').value == "") {
            alert("The Name field is required.");
	        document.getElementById('qname').focus();
	        return false;
	    }
	    return true;
	}
	catch(e) {
		alert(e.message);
		return false;
	}
}


function verifyContactFull() {
    try {
	    if (document.getElementById('name').value == "") {
            alert("The Name field is required.");
	        document.getElementById('name').focus();
	        return false;
	    }
        if (document.getElementById('email').value == "") {
		    alert("The Email field is required.");
		    document.getElementById('email').focus();
		    return false;
		}
  		if (document.getElementById('phone').value == "") {
		    alert("The Phone field is required.");
		    document.getElementById('phone').focus();
		    return false;
		}
	    return true;
	}
	catch(e) {
		alert(e.message);
		return false;
	}
}