
function checkForPunctuation(obj)
{
val = obj.value;
if(val.indexOf("\/")>-1)
   alertPunc(obj);
else if(val.indexOf("\\")>-1)
   alertPunc(obj);
else if(val.indexOf("\:")>-1)
   alertPunc(obj,dd);     
else if(val.indexOf("\*")>-1)
   alertPunc(obj);
else if(val.indexOf("\<")>-1)
   alertPunc(obj);
else if(val.indexOf("\>")>-1)
   alertPunc(obj);
else if(val.indexOf("\"")>-1)
   alertPunc(obj);
else if(val.indexOf("\|")>-1)
   alertPunc(obj);
else if(val.indexOf("\=")>-1)
   alertPunc(obj);
}

function alertPunc(obj)
  {
  alert("Cannot contain any of the following characters: \/\\\:\*\<\>\"\|\=");
  obj.select();
  obj.focus();
  }

   

