function validate_quote(theform){
	var useremail;
	var name = theform.Name;
	var email = theform.Email;
	var phone = theform.Phone;
	var comments = theform.FeedbackDescription;
	var captcha = theform.captchacode;

	useremail=isEmail(email.value);

	if (name.value==""){
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (useremail==false){
		alert("Please enter your proper email address.");
		email.focus();
		return false;
	}

	if (phone.value==""){
		alert("Phone cannot be blank.");
		phone.focus();
		return false;
	}

	if (comments.value==""){
		alert("Project description cannot be blank.");
		comments.focus();
		return false;
	}

	if (captcha.value == ""){
		alert("Please enter the security code.");
		captcha.focus();
		return false;
	}
}

function validate_contact(theform){
	var useremail;
	var name = theform.Name;
	var email = theform.Email;
	var url = theform.URL;
	var msg = theform.FeedbackDescription;

	useremail=isEmail(email.value);

	if (name.value==""){
		alert("Name cannot be blank.");
		name.focus();
		return false;
	}

	if (useremail==false){
		alert("Please enter your proper email address.");
		email.focus();
		return false;
	}

	if (url.value.toLowerCase()=="http://www.yourwebsite.com"){
		alert("Website cannot be blank.");
		url.focus();
		return false;
	}

	if (msg.value==""){
		alert("Message cannot be blank.");
		msg.focus();
		return false;
	}
}

function thisfocus(ctrl){
	if (ctrl.value.toLowerCase()=="http://www.yourwebsite.com"){
		ctrl.value="";
	}
}

function thisblur(ctrl){
	if (ctrl.value==""){
		ctrl.value="http://www.yourwebsite.com";
	}

	if (ctrl.value.indexOf("http://") == -1){
		ctrl.value="http://"+ctrl.value;
	}
}

