      function returnResult(key)
           {
               $('#divSearh').load("aditionalModules/arraysearch.php");
               // load('index.php?route=account/create/zone&amp;country_id=' + this.value + '&amp;zone_id=FALSE')
            $.ajax({
                       type: "GET",
                       url: "aditionalModules/arraysearch.php",
                       data: "key="+key,
                       success: function(result){
                      $('#divSearh').html(result);
 
                      eval(result);
                      }
                     });
           }
         function putt(selectValues){
           
        var sel_list=document.getElementById('mySelect');
            sel_list.options.length=0;
            sel_list.size=6;
            
           var i=0;var option;
           for(i;i<selectValues.length;i++)
           {
               option = new Option(selectValues[i]);
               sel_list[sel_list.length]=option;
               
           }
           if(selectValues.length) sel_list.style.display='block';
           else sel_list.style.display='none';
         
           }
         function setSearchValue(sel_list){
            document.getElementById('filter_keyword').value=sel_list.options[sel_list.selectedIndex].value;
            sel_list.options.length=0; 
            sel_list.size=1;
            sel_list.style.display='none';
         }
         
         function notFocus(){
            var sel_list=document.getElementById('mySelect'); 
            sel_list.options.length=0; 
            sel_list.size=1;
            sel_list.style.display='none';   
         }

     function redirectURL(path,page){
       document.location=path+page;
     }

      function returnShippingValue(key)
           {
               $.ajax({
                       type: "GET",
                       url: "aditionalModules/shippingValue.php",
                       data: "method="+key,
                       success: function(result){
                           
                       var tmp=result.split('<1-1>');
                   $('#masaCalc').html(tmp[0]);
                   $('#volumCalc').html(tmp[1]);
                 
                     eval(result);
                      }
                     });    
           }



      function changeDivs()
{
 var i=0;
 count++;
 if(count==nr) count=0;
  for(i;i<nr;i++)
  {

  if (i==count) divTags[i].style.display='block';
    else  divTags[i].style.display='none';

     }
   
  t=setTimeout("changeDivs();",5000);
}

function cartButton(img,mod){
   if(mod) img.src='catalog/view/theme/default/image/cart/cumpar2.gif';
   else  img.src='catalog/view/theme/default/image/cart/cumpar.gif';

}


