function submitForm(elementName,value) {
   document.f.elements[elementName].value = value;
   document.f.submit();
}

function doPopup (url, height, width) {
   day     = new Date();
   id      = day.getTime();
   bwidth  = window.screen.width;
   bheight = window.screen.height;
   fleft    = ((bwidth - width) / 2);
   ftop     = ((bheight - height) / 2);
   eval("page" + id + " = window.open(url, \'" + id + "\', \'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + ",left = " + fleft + ",top = " + ftop + "\');");
   eval("obj = page"+id+";");
   return obj;
}

function doConfirm(t, u) {
   if(confirm(t)) { 
      document.location.href = u;
   } 
}
function submitLanguageForm(confirmationText, type) {
   if (type ==  "Delete" || type ==  "DeleteLang"){  
      if(confirm(confirmationText)) { 
         document.f.submit();
      } 
    } else {
         document.f.submit();
   }
}
function doConfirmLangDel(t, u) {
   if(confirm(t)) { 
      document.f.submit();
   } 
}
