   function showLoading() {
      var e;
	
		document.getElementById("cnt").style.display = 'none';
		document.getElementById("foot").style.display = 'none';
		document.getElementById("wait").style.display = 'block';

	e = document.getElementsByName("text");
	
      for(var i=0;i < e.length; i++) {
         e[i].style.display = 'none';
      }

      window.scroll(0,0);
      
   }
   function myRound(inNum) {
      var temp;
      temp = inNum * 100;
      temp = Math.round(temp);
      return temp / 100;
   }
   function getUnformattedPrice(inPrice) {
      var outPrice;
      outPrice = '' + inPrice.substring(0, inPrice.indexOf(','));
      outPrice += '.';
      outPrice += '' + inPrice.substring(inPrice.indexOf(',') + 1, inPrice.indexOf(' '));
      return outPrice;
   }
   function getUnformattedPrice2(inPrice) {
      var outPrice;
      outPrice = '' + inPrice.substring(0, inPrice.indexOf(','));
      outPrice += '.';
      outPrice += '' + inPrice.substring(inPrice.indexOf(',') + 1, inPrice.length);
      return outPrice;
   }
   function getFormattedPrice(inPrice) {
      var outPrice;
      
      inPrice = '' + inPrice;
      if (inPrice.indexOf('.') > 0) {
         outPrice = '' + inPrice.substring(0, inPrice.indexOf('.'));
         outPrice += ',';
         outPrice += '' + inPrice.substring(inPrice.indexOf('.') + 1, inPrice.length);
      } else {
         outPrice = '' + inPrice + ',00';
      }
      return outPrice;
   }
	
   function getSelAcc() {
      var j;
      var total;
      var id;
      var accids_quantity;
      accids_quantity = '';
     
      document.frm_reserve.acc_ids.value = '';
      for (var i = 0; i < 50; i++) {
         //if (document.getElementById('selAcc' + i) == 'undefined') {
         if (document.getElementById('selAcc' + i) == null) {	 
            break;
         } else {
            total = parseInt(document.getElementById('selAcc' + i).value, 10);
            id = document.getElementById('hidAcc' + i).value;
            if (accids_quantity!=''){
               accids_quantity = accids_quantity+ ',' +  i + '|' + total;
            }else{
               accids_quantity= i + '|' + total;
            }
           
            for (j = 1; j <= total; j++) {
               document.frm_reserve.acc_ids.value += id + ',';
            }
            
         }
      }
      document.frm_reserve.acc_ids_quantity.value = accids_quantity;
   }
   function doReserve() {
      getSelAcc();
      document.frm_reserve.submit();
   }
   function SelectAccid(sAccId, sQuantity){
       document.getElementById('selAcc'+sAccId)[sQuantity].selected=true;
   }
	
