function applicationForm(){
		var name = document.getElementById('name');
		var email = document.getElementById('email');
		var company = document.getElementById('company');
		var contact = document.getElementById('contact');
		var projtype = document.getElementById('projtype');
		var details = document.getElementById('details');
		
		
				
		if(isEmpty(name, "Please Input your Name")){
			return false;
		}else if(isEmpty(email, "Enter your E-mail")){
			return false;
		}else if(emailValidator(email, "A valid Email is required")){
			return false;
		}else if(isNumeric(contact, "Enter a Valid Contact Number")){
			return false;
		}else if(madeSelection(projtype, "Please Choose a Project Type")){
			return false;
				
		}else if(isEmpty(details, "Additional Details Required!")){
			return false;
		
		
		}else{
			var confrm = confirm("Are you sure you want to submit?");
			if(confrm == true){
				return true;
			}else{
				return false;	
			}
		}
	}
function isEmpty(elem, helperMsg){
	if(elem.value.length == 0){
		alert(helperMsg);
		elem.focus(); // set the focus to this input
		return true;
	}
		return false;
}
function chckAgreement(elem, helperMsg){
	if(elem.checked==false){
		alert(helperMsg);
		elem.focus(); // set the focus to this input
		return true;
	}
		return false;
}
function isNumeric(elem, helperMsg){
	var numericExpression = /^[0-9]+$/;
	if(elem.value.match(numericExpression)){
		return false;
	}else{
		alert(helperMsg);
		elem.focus();
		return true;
	}
}

function isAlphabet(elem, helperMsg){
	var alphaExp = /^[a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

function isAlphanumeric(elem, helperMsg){
	var alphaExp = /^[0-9a-zA-Z]+$/;
	if(elem.value.match(alphaExp)){
		return true;
	}else{
		alert(helperMsg);
		elem.focus();
		return false;
	}
}

function lengthRestriction(elem, min, max){
	var uInput = elem.value;
	if(uInput.length >= min && uInput.length <= max){
		return true;
	}else{
		alert("Please enter between " +min+ " and " +max+ " characters");
		elem.focus();
		return false;
	}
}

function madeSelection(elem, helperMsg){
	if(elem.value == "Please Choose"){
		alert(helperMsg);
		elem.focus();
		return true;
	}else{
		return false;
	}
}

function emailValidator(elem, helperMsg){
	var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
	 if(elem.value.match(emailExp)){
		return false;
	}else{
		alert(helperMsg);
		elem.focus();
		return true;
	}
	
	if(elem.value.length == 0){
		alert(helperMsg);
		elem.focus(); // set the focus to this input
		return true;
	}
		return false;
}
