
// Verify Contact form
function verifyContact() {
    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;
	    }
	    return true;
	}
	catch(e) {
		alert(e.message);
		return false;
	}
}

// Verify Order Product form
function verifyOrder() {
    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;
	    }
		if (document.getElementById('baddress').value == "") {
            alert("The Billing Address field is required.");
	        document.getElementById('').focus();
	        return false;
	    }
		if (document.getElementById('bcity').value == "") {
            alert("The Billing City field is required.");
	        document.getElementById('bcity').focus();
	        return false;
	    }
		if (document.getElementById('bstate').value == "") {
            alert("The Billing State field is required.");
	        document.getElementById('bstate').focus();
	        return false;
	    }
		if (document.getElementById('bzip').value == "") {
            alert("The Billing Zip Code field is required.");
	        document.getElementById('bzip').focus();
	        return false;
	    }
	    return true;
	}
	catch(e) {
		alert(e.message);
		return false;
	}
}
