
<!--

function bookmark(url, description){
	netscape="Firefox and Netscape User's hit CTRL+D to add a bookmark to this site."
	if (navigator.appName=='Microsoft Internet Explorer'){
		window.external.AddFavorite(url, description);
	}else if (navigator.appName=='Netscape'){
		alert(netscape);
	}
}

function RenovatorRatings(cur){//RenovatorRatings
	if (cur.BusinessName.value == ""){
		alert("Please enter a business name.");
		cur.BusinessName.focus();
	return false;
	}
	if (cur.State.value == ""){
		alert("Please select a State or Province");
		cur.State.focus();
	return false;
	}
}

function checkCarpenterrating(cur){ //RenovatorRating
	BusinessNameLength = cur.BusinessName.value.length;
	if (BusinessNameLength<2){
		alert("Please enter a 'Business Name', currently there are only " + BusinessNameLength + " characters.");
		cur.BusinessName.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;
	}	
	string1 = cur.Lastname.value;
	matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed.");
		cur.Lastname.focus();
		return false;
	}
	string1 = cur.Firstname.value;
	matchPos1 = string1.indexOf(strSearch);	
	if(matchPos1 != -1){
		alert("Sorry, no reference to a webpage address is allowed.");
		cur.Firstname.focus();
		return false;
	}
}

function checkcarpenterReview(cur){ //RateExisting, check
	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.");
		cur.Comment.focus();
		return false;
	}
	strSearch = "www";	
	string1 = cur.Comment.value;
	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;
	}	
	
	
	
	
	
	if (cur.BusinessName.value == ""){
		alert("Please enter a business name.");
		cur.BusinessName.focus();
	return false;
	}	
}

function ViewcarpenterRatings(cur){
	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 ViewplumberRatings(cur){
	BusinessNameLength = cur.BusinessName.value.length;
	if (BusinessNameLength<1){
		alert("Please enter an '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 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 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";
	string1 = cur.Comment.value;
	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;
	}
}


// end hiding script-->

