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

function enable_upload(id) {
     document.getElementById(id).disabled=false
}

function disable_upload(id) {
     document.getElementById(id).disabled=true
}

function popup(mylink, windowname)
{
if (!window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
   window.open(href, windowname, 'width=700,height=500,resizable=yes, scrollbars=yes');
   return false;
}
