//<!--
//Created: 09.27.2005 - Angela Mulroy
function ContainsHTML(val, args){
  var value  = ValidatorGetValue(val.controltovalidate);
  var rx     = new RegExp("^<\\s*(\\S+)(\\s[^>]*)?>[\\s\\S]*<\\s*\\/\\1\\s*>|<!--((?!--&gt;).)*$");
  if(rx.exec(value))
  {
	  args.IsValid = false;
	}
  else
  {
    args.IsValid = true;
  }
}

function validateCode(source, arguments)
{
  var value = ValidatorGetValue(source.controltovalidate);
  if(value.length > 3000)
  {
    arguments.IsValid = false;
  }
  else
  {
    arguments.IsValue = true;
  }
}

function validateNotes(source, arguments)
{
  var value = ValidatorGetValue(source.controltovalidate);
  if(value.length > 6000)
  {
    arguments.IsValid = false;
  }
  else
  {
    arguments.IsValue = true;
  }
}

//-->
