

<!--
function AutoRepairReviews(cur){//carrepairrating
	if (cur.BusinessName.value == ""){
		alert("Please enter a business name.");
		cur.BusinessName.focus();
	return false;
	}
	if (cur.City.value == ""){
		alert("Please enter a location, like a city or street name.");
		cur.City.focus();
	return false;
	}
	if (cur.State.value == ""){
		alert("Please select a State or Province");
		cur.State.focus();
	return false;
	}
}


function checkRateExisting(cur){  //RateExisting
	CommentLength = cur.Comment.value.length;
	if (CommentLength>249){
		alert("Please enter a 'CommentLength' less than 250 characters, currently there are " + CommentLength + " characters.");
		cur.Comment.focus();
		return false;
	}	
	var strSearch = "http";
	var string1 = cur.Comment.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed.");
		cur.Comment.focus();
		return false;
	}
	strSearch = "www";
	matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed due to spam problems.");
		cur.Comment.focus();
		return false;
	}
}

function checkMechanicListings(cur){  //Check
	if (cur.BusinessName.value == ""){
		alert("Please enter a business name.");
		cur.BusinessName.focus();
	return false;
	}
	if (cur.City.value == ""){
		alert("Please enter a location, like a city or street name.");
		cur.City.focus();
	return false;
	}
	if (cur.State.value == ""){
		alert("Please select a State or Province");
		cur.State.focus();
	return false;
	}


	CommentLength = cur.Comment.value.length;
	if (CommentLength>249){
		alert("Please enter a 'CommentLength' less than 250 characters, currently there are " + CommentLength + " characters.");
		cur.Comment.focus();
		return false;
	}	
	var strSearch = "http";
	var string1 = cur.Comment.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed.");
		cur.Comment.focus();
		return false;
	}
	strSearch = "www";
	matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed due to spam problems.");
		cur.Comment.focus();
		return false;
	}
}

function checkAutoMechanicRating(cur){ // Carrepairratings
BusinessNameLength = cur.BusinessName.value.length;
	if (BusinessNameLength<2){
		alert("Please enter a 'Business Name', currently there are " + BusinessNameLength + " characters.");
		cur.BusinessName.focus();
		return false;
	}
	
	LocationLength = cur.City.value.length;
	if (LocationLength<2){
		alert("Please enter a 'Location', like a city or street. Currently there are only " + LocationLength + " characters.");
		cur.City.focus();
		return false;
	}
	
	var strSearch = "http";
	var string1 = cur.BusinessName.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed.");
		cur.BusinessName.focus();
		return false;
	}
	string1 = cur.City.value;
	matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed.");
		cur.City.focus();
		return false;
	}
}

function checkContactUs(cur){//contactus
	FromLength = cur.From.value.length;
	
	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;
	}
	
	if (FromLength<2){
		alert("Please enter a value in 'From', currently there are " + FromLength + " characters.");
		cur.From.focus();
		return false;
	}
	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;
	}

}

function SearchMechanicsRatings(cur){   //ViewRatings
	lastnameLength = cur.Lastname.value.length;
	if (lastnameLength<1){
		alert("Please enter a 'Lastname' or the first letter(s) of the 'Lastname', currently there are " + lastnameLength + " characters.");
		cur.Lastname.focus();
		return false;
	}	
	if (cur.State.value == ""){
		alert("Please select a State or Province");
		cur.State.focus();
	return false;
	}
}
function ViewautorepairRatings(cur){  //ViewRatings
	BusinessNameLength = cur.BusinessName.value.length;
	if (BusinessNameLength<1){
		alert("Please enter a 'BusinessName' or the first letter(s) of the 'BusinessName', currently there are " + BusinessNameLength + " characters.");
		cur.BusinessName.focus();
		return false;
	}	
	if (cur.State.value == ""){
		alert("Please select a State or Province");
		cur.State.focus();
	return false;
	}
}

function checkComment(cur){ // ArticleRating
CommentLength = cur.Comment.value.length;
	if (CommentLength>249){
		alert("Please enter a 'Comment' less than 250 characters, currently there are " + CommentLength + " characters.");
		cur.Comment.focus();
		return false;
	}	
	var strSearch = "http";
	var string1 = cur.Comment.value;
	var matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed due to spam problems.");
		cur.Comment.focus();
		return false;
	}
	strSearch = "www";
	matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed due to spam problems.");
		cur.Comment.focus();
		return false;
	}	
}

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

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

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

// end hiding script-->

