function checkSiteLength(){
	var myContentNodes = document.getElementsByClassName("innerContent");

	if(myContentNodes[0].offsetHeight < 700) {
		var myWrapperNode = document.getElementById("wrapperSite");
		myWrapperNode.style.height = "95%";
	}
}


function textCounter(theField, theMaxLimit) {
	//window.alert(theField.value.length);
	if (theField.value.length > theMaxLimit) {
		theField.value = theField.value.substring(0, theMaxLimit);
	}
	//theField.value = theField.value;
}

function toggleMore(icon, title_id) {
	var title = $(title_id);
	icon.className = icon.className != "arrow arrowBottom" ? "arrow arrowBottom" : "arrow";
	title.hidden = title.hidden == null ? true : title.hidden;

	if (title.hidden) {
		title.style.height = "auto";
		title.style.display = "none";
		new Effect.BlindDown(title);
	} else {
		new Effect.BlindUp(title);
	}
	title.hidden = !title.hidden;
}