// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults


// To limit the characters in a text_area or a text_area tag
// Example: <%= form.text_area :info, :rows=>5, :maxlength => "200", :onkeyup => "return ismaxlength(this)" %>
function ismaxlength(obj){
  var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
  if (obj.getAttribute && obj.value.length>mlength)
    obj.value=obj.value.substring(0,mlength)
}

