

/*http://www.dhtmlshock.com/text-effects/CellBackground/default.asp*/
function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FF997E";
}
}

function cOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FF7F66";
}
}

function cOn2(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#CC3366";
}
}

function cOut2(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#E24977";
}
}

function cOn3(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#98C2B0";
}
}

function cOut3(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#80A998";
}
}


function cOn4(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FF36AC";
}
}

function cOut4(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#FF0099";
}
}

function EasyToddlerCooking(cur){
	if (cur.Title.value == ""){
		alert("Please enter a Title");
		cur.Title.focus();
		return false;
	}
	if (cur.Password.value == ""){
		alert("Please enter a Password");
		cur.Password.focus();
		return false;
	}
	if (cur.Description.value == ""){
		alert("Please enter a Description");
		cur.Description.focus();
		return false;
	}
	if (cur.Ingredients.value == ""){
		alert("Please enter Ingredients");
		cur.Ingredients.focus();
		return false;
	}
	if (cur.Directions.value == ""){
		alert("Please enter Directions");
		cur.Directions.focus();
		return false;
	}
	//http://www.tizag.com/javascriptT/javascript-string-search.php
	var strSearch = "http";
	
	var string1 = cur.Title.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
			alert("Sorry, no reference to a webpage address is allowed.");
			cur.Title.focus();
			return false;
	}
	
	string1 = cur.Password.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
			alert("Sorry, no reference to a webpage address is allowed.");
			cur.Password.focus();
			return false;
	}
	
	string1 = cur.Description.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
			alert("Sorry, no reference to a webpage address is allowed.");
			cur.Description.focus();
			return false;
	}
	
	string1 = cur.Ingredients.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
			alert("Sorry, no reference to a webpage address is allowed.");
			cur.Ingredients.focus();
			return false;
	}
	
	string1 = cur.Directions.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
			alert("Sorry, no reference to a webpage address is allowed.");
			cur.Directions.focus();
			return false;
	}
}

function checkContactUs(cur){//contactus

	
	MessageLength = cur.Message.value.length;
	if (MessageLength<10){
		alert("Please enter a value in 'Message', currently there are " + MessageLength + " characters.");
		cur.Message.focus();
		return false;
	}
	FromLength = cur.From.value.length;
	if (FromLength<2){
		alert("Please enter a value in 'From', currently there are " + FromLength + " characters.");
		cur.From.focus();
		return false;
	}
	
	//declaration here, below 'var' not needed
	var strSearch = "http";//needed below too	
	var string1 = cur.Message.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed due to spam problems.");
		cur.Message.focus();
		return false;
	}
	
	string1 = cur.From.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed do to spam problems.");
		cur.From.focus();
		return false;
	}

	strSearch = "www";
	
	string1 = cur.Message.value;
	matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed due to spam problems.");
		cur.Message.focus();
		return false;
	}
	
	string1 = cur.From.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed do to spam problems.");
		cur.From.focus();
		return false;
	}

}

// end hiding script-->

