function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}


function clearText(textBox){
	if(!textBox){
		return;
	}			      
	if(textBox.value=="Enter a keyword or domain name."){
		textBox.value="";
		textBox.style.color="#413839";
	}
	if(textBox.value=="Enter your email address." || textBox.value=="Email Address"){
		textBox.value="";
		textBox.style.color="#413839";
	}
}	

function putOriginalText(whichElement,whichText){
	if(trim(whichElement.value)==""){
		whichElement.value=whichText;
	}
}
