// JavaScript Document
function checkemail(value) {
var email = document.getElementById('email');
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(value)){
return (true)
}

alert("Invalid E-mail Address! Please re-enter.")
email.focus()
email.select()
return (false)
}
function validateform(frm)
{
	var name = document.getElementById('name');
	var company = document.getElementById('company');
	var telephone = document.getElementById('telephone');
	var email = document.getElementById('email');
	var txtNumber = document.getElementById('txtNumber');
	var comments = document.getElementById('comments');

	if(name){
		if(name.value=="")
		{
			alert('Please enter name');
			name.focus();
			return false;
				
		}
	}
	if(company){
		if(company.value=="")
		{
			alert('Please enter company name');
			company.focus();
			return false;
		}
	}
	if(telephone){
		if(telephone.value=="")
		{
			alert('Please enter telephone');
			telephone.focus();
			return false;
		}
	}
	
	if(email.value=="")
	{
		alert('Please enter email address');
		email.focus();
		return false;
	}
	if (!checkemail(email.value))
	{
		return false;
	}
	if(comments)
	{
		if(comments.value=="")
		{
		alert('Please enter your comment');
		comments.focus();
		return false;
		}
	}

	if(txtNumber.value=="")
	{
		alert('Please enter the Confirmation Code as seen in the picture below ');
		txtNumber.focus();
		return false;
		
	}
	
}
<!-- 

 --><!-- 

 -->