	function checkit() {
	
	 var remove_characters = 0;
	
	 if (document.metas.title.value.length<2){
	  document.metas.title.focus();
	  alert("The Title Tag contains too few characters.This field MUST\ncontain at least 2 characters, but not more than 60 characters.");
	  return false;
	 }
	 if (document.metas.title.value.length>60){
	  document.metas.title.focus();
	  remove_characters = document.metas.title.value.length - 60;
	  alert("The Title Tag is too long. It is currently " + document.metas.title.value.length + " characters long.\nPlease remove " + remove_characters + " characters from the Title Tag.");
	  return false;
	 }
	 if (document.metas.description.value.length<2){
	  document.metas.description.focus();
	  alert("The Descrption Tag contains too few characters.This field MUST\ncontain at least 2 characters, but not more than 150 characters.");
	  return false;
	 }
	 if (document.metas.description.value.length>150){
	  document.metas.description.focus();
	  remove_characters = document.metas.description.value.length - 150;
	  alert("The Description Tag is too long. It is currently " + document.metas.description.value.length + " characters long.\nPlease remove " + remove_characters + " characters from the Description Tag.");
	  return false;
	 }
	 if (document.metas.keywords.value.length<2){
	  document.metas.keywords.focus();
	  alert("The Keywords Tag contains too few characters.This Tag MUST\ncontain at least 2 characters, but not more than 874 characters.");
	  return false;
	 }
	 if (document.metas.keywords.value.length>874){
	  document.metas.keywords.focus();
	  remove_characters = document.metas.keywords.value.length - 874;
	  alert("The Keywords Tag is too long. It is currently " + document.metas.keywords.value.length + " characters long.\nPlease remove " + remove_characters + " characters from the Keywords Tag.");
	  return false;
	 }
	 return true;
	}

var counters1;
var counters2;

function EventCounter1(field,MAX,CharacterCount){
   var MAXCHAR=MAX;
   var len=0;
	for (i=0;i<counters1.length;i++){
		len+=counters1[i].value.length;
	}
	if (len>MAXCHAR){
		alert("The maximum number of characters\nthat can be entered is " + MAXCHAR + ".\n\n You have entered " + len + " characters.");
		field.value=field.value.substring(0,field.value.length+MAXCHAR-len);
		document.metas.DChars.value=0;
		document.metas.DChars.focus();
	}
	else{
	   document.metas. DChars.value=(MAXCHAR-len);
	}
}

function EventCounter2(field,MAX){
   var MAXCHAR=MAX;
   var len=0;
	for (i=0;i<counters2.length;i++){
		len+=counters2[i].value.length;
	}
	if (len>MAXCHAR){
		alert("The maximum number of characters\nthat can be entered is " + MAXCHAR + ".\n\n You have entered " + len + " characters.");
		field.value=field.value.substring(0,field.value.length+MAXCHAR-len);
		document.metas.KChars.value=0;
		document.metas.KChars.focus();
	}
	else{
		document.metas.KChars.value=(MAXCHAR-len);
	}
}

