
theValidator.required("add_site_form", "site_url","Please enter a URL" );
theValidator.required("add_site_form", "site_name","Please enter a Site Name" );
theValidator.required("add_site_form", "description","Please enter a Description" );
theValidator.required("add_site_form", "site_category[]","Please select at least one Category" );
theValidator.required("add_site_form", "contact_name","Please enter the Contact Name" );
theValidator.required("add_site_form", "contact_email","Please enter the Contact Email Address", "EMAIL" );

function checklength( theField, maxlength )
{
  value = String(theField.value);

  len = value.length;

  if ( len > maxlength ) {

	tempstr = theField.value.substring( 0, 144 );
	theField.value = tempstr;

	alert( "Your Description cannot exceed 144 characters" );
  }
}

