

<!--
function CellPhoneCarrier(cur){ //cellphoneratings.php
	if (cur.CompanyName.value == ""){
		alert("Please select a Company");
		cur.CompanyName.focus();
	return false;
	}
	if (cur.ProductType.value == ""){
		alert("Please enter a service plan name.");
		cur.ProductType.focus();
	return false;
	}
}

function ServicePlanSearch(cur){ 
	if (cur.Company.value == ""){
		alert("Please select a Company");
		cur.Company.focus();
		return false;
	}
}

function SignalTowerReviews(cur){  //RateExisting, Check
	CommentLength = cur.Comment.value.length;
	if (CommentLength>250){
		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 CellPhoneCarrierReviews(cur){   //ViewRatings
	if (cur.CompanyName.value == ""){
		alert("Please select a Company");
		cur.CompanyName.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;
	}

}

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

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

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

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

function cOut3(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#000080";
}
}
// end hiding script-->


