function frmCheckFields(frm)
{
  if(arguments.length == 0) frm="frmEdit"; 
 var el=document.forms[frm];
  for(var i=0;i<el.length;i++)
     {
      if((el[i].type == "text") && 
         (el[i].value.length == 0))
        {
         alert("Fill fields...");
         return false;
        }
     }
  return true;
}
function frmCheckIsNumeric(aFileds)
{
var tmp=""; 
 if(aFileds.length)
   {
    var i;
    aFileds=aFileds.split(",");
    for(i=0;i<aFileds.length;i++)
       {
        document.all(aFileds[i]).value=document.all(aFileds[i]).value.replace(",",".");
        if(isNaN(document.all(aFileds[i]).value)||document.all(aFileds[i]).value.length==0)
         {
          tmp=tmp+aFileds[i].replace("fld","")+",";
         }
       }
   }
 if(tmp.length>0) tmp=tmp.substr(0,tmp.length-1)
 return tmp;
}
