function isEmpty(s)
{ return ((s == null) || (s.length == 0)) }
// Returns true if string s is empty or 
// whitespace characters only.
function isWhitespace (s)
{   var i;
    if (isEmpty(s)) return true;
    for (i = 0; i < s.length; i++)
    {
       var c = s.charAt(i);
        if (c != " ") return false;
    }
    return true;
}

function blnCheckItemMustChoose_msgBox(inptName,ttleName,optMsgText){
//var currVal = jsTrim(document.all(inptName).value);
var currVal = document.all(inptName).value;
var strMsgText = "Please, fill the item"
  if(optMsgText!="" && optMsgText!=null){strMsgText = optMsgText}
  if (currVal=="" || currVal<0){ 
      myAlert(strMsgText,ttleName,"")
      document.all(inptName).focus();
      return false;
  }
  else{
    return true;
  }  
}

function blnCheckItemMustFilled_msgBox(inptName,ttleName){
var strVal = document.all(inptName).value;
  if (isWhitespace(strVal)==true)
    { 
      alert("Please, fill the item" + " " + ttleName)
      document.all(inptName).focus();
      return false;
    }
  else
   {
    return true;
   }  
}

function checkIsNum_keyPress(){
   if ((event.keyCode < 48 ||event.keyCode > 57) & (event.keyCode != 13)) event.returnValue = false;
 } 
 function checkInpt_tel_keyPress(){
  if ((event.keyCode < 45 || event.keyCode > 57) & (event.keyCode != 13)) event.returnValue = false;
 }
 function checkIsPrice_keyPress(){
  if ((event.keyCode < 45 || event.keyCode > 57) & (event.keyCode != 13)) event.returnValue = false;
 }
 
 function checkIsTime_msgBox_JS(inVal){
 }
 
 function checkIsTime_keyPress(){
   if ((event.keyCode < 46 ||event.keyCode > 58) & (event.keyCode != 13)) event.returnValue = false;
 } 

function myAlert(MsgDescr,addDescr,blnBig){
var strMsg = MsgDescr
if(addDescr!=""){strMsg=strMsg + " '" + addDescr + "'"}
 alert(strMsg)
}

function myConfirm(MsgDescr,addDescr,blnBig){
//return false or true
}


function get_tmpCashe(){
   var now = new Date()
   var hours = now.getHours()
   var minutes = now.getMinutes()
   var seconds = now.getSeconds()
   return hours + "_" + minutes + "_" + seconds;
}
function jsIsNumeric(inVal){
}