	var email_message = "* Required";
	var name_message  = "* Required";
	function backInBlack(ob){
		ob.style.color = "#000000";
		ob.value = "";
	}
	function emailBlank(ob){
		ob.style.color = "#000000";
		ob.value = "";
	}
	function emailFill(ob){
		ob.style.color = "grey";
		ob.value = "you@yourcompany.com";
	}
	var emailFormObject = $('qqemail');
	emailFormObject.onfocus = function(){
		if (this.value == "you@yourcompany.com"){
			emailBlank(this);
		}
	}
	emailFormObject.onblur = function(){
		if (this.value == ""){
			emailFill(this);
		}
	}

function checkqqNameAndEmail(){

	var name_form  = document.getElementById("qqname");
	var email_form = document.getElementById("qqemail");
	name_form.onfocus = function(){
		backInBlack(this);
	}
	email_form.onfocus = function(){
		backInBlack(this);
	}
	var strEmail = document.getElementById("qqemail").value;
	var strName = document.getElementById("qqname").value;
	var echk = true;
	var emailFilter = /^.+@.+\..{2,3}$/;
	var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/;

	if (strName == "" || strName == name_message){
		name_form.style.color = "#ff0033";
		name_form.value = name_message;
		echk = false;
	}
	if (strName.match(illegalChars)){
		name_form.style.color = "#ff0033";
		name_form.value = name_message;
		echk = false;
	}
	if (strEmail == "" || strEmail == email_message || strEmail == "you@yourcompany.com"){
		email_form.style.color = "#ff0033";
		email_form.value = email_message;
		echk = false;
	}
	if (!emailFilter.test(strEmail))
	{
		email_form.style.color = "#ff0033";
		email_form.value = email_message;
		echk = false;
	}
	if (strEmail.match(illegalChars))
	{
		email_form.style.color = "#ff0033";
		email_form.value = email_message;
		echk = false;
	}

	return echk;
}
function fillReferrerLeft(){
	document.getElementById("referrerLeft").value = encodeURIComponent(location.href);
	//alert(location.href);
}
function taTextLeft(){
	if(document.getElementById('qqaddinfo').value == "i.e. due date, specific details, etc"){
		$('qqaddinfo').value = "";
		$('qqaddinfo').style.color = "black";
	}
	else if (document.getElementById('qqaddinfo').value == ""){
		$('qqaddinfo').value = "i.e. due date, specific details, etc";
		$('qqaddinfo').style.color = "gray";
	}
}
fillReferrerLeft();