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


  function show_url(link) {
    var l= link.replace(/http:\/\//i, "");
    window.open('http://'+l, 'Vorschau',
      'toolbar=no,width=718,height=400,resizable=yes,top=40,scrollbars=yes');
  }
  
  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)
  }

