function onLoad(){
    document.getElementById("uploading").style.display = "none"; 
    document.getElementById("uploadForm").style.display  = "";
}
        
function imgload(){
  document.images['imgload'].src = document.images['imgload'].src;
}

function validate(msg){
 if (document.formfile.arquivo.value == "") {
 alert(msg);
 return false;
} else {
 document.getElementById("uploading").style.display = "";
 document.getElementById("uploadForm").style.display = "none";
 document.formfile.submit();
 window.setTimeout("imgload()", 100);
 }

}

function showMenu()
{
 document.getElementById("laguages").style.display = "";
}

function closeMenu()
{
 document.getElementById("laguages").style.display = "none";
}

function selectAll(field) {
  field.focus();
  field.select();
}

function popup(theURL, Name, popW, popH, scroll) {
  var winleft = (screen.width - popW) / 2;
  var winUp = (screen.height - popH) / 2;
  winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
  Win = window.open(theURL, Name, winProp)
  if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}

function goToCatalogPage(url){
    top.location.href = url;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
