function textField(id){
	document.getElementById(id).value='';
}
function AddFavorite(linkObj,addUrl,addTitle) 
{ 
  if (document.all && !window.opera) 
  { 
    window.external.AddFavorite(addUrl,addTitle); 
    return false; 
  } 
  else if (window.opera && window.print) 
  { 
    linkObj.title = addTitle; 
    return true; 
  } 
  else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function')) 
  { 
    if (window.confirm('Přidat oblíbenou stránku jako nový panel?')) 
    { 
      window.sidebar.addPanel(addTitle,addUrl,''); 
      return false; 
    } 
  } 
  window.alert('Po potvrzení stiskněte CTRL-D,\nstránka bude přidána k vašim oblíbeným odkazům.'); 
  return false; 
} 
function mch(i){
	var top = 29*i;
	document.getElementById("menu").style.backgroundPosition = "0px -"+top+"px";
}
function mrs(){
	document.getElementById("menu").style.backgroundPosition = "0px 0px";
}
function mch2(i){
	var top = 31*i;
	document.getElementById("menu2").style.backgroundPosition = "0px -"+top+"px";
}
function mrs2(){
	document.getElementById("menu2").style.backgroundPosition = "0px 0px";
}
function chh(i){
	if (i == 0){
		document.getElementById("uzivatel").style.display = "block";
		document.getElementById("kosik").style.display = "none";		
	}else{
		document.getElementById("uzivatel").style.display = "none";
		document.getElementById("kosik").style.display = "block";	
	}
}


/***
 *  functiond by KD
 */  
function togleDiv(divToHideId,divToShowId){
 		document.getElementById(divToHideId).style.display = "none";
		document.getElementById(divToShowId).style.display = "block";	 
}

 
function calculateTotalPrice(){
    document.getElementById('totalPriceDiv').innerHTML=priceDeliver+totalPrice+pricePlus;
}
function deliverPrice(price,prague){

    priceDeliver=price*1;
    if(prague){
        document.getElementById('deliverOut').style.display='block';
    }
    else{
        document.getElementById('deliverOut').style.display='none';
        document.getElementById('odvoz').checked=false;
        pricePlus=0;
    }
    
    calculateTotalPrice();
    
}
function deliverOld(point,val){
    if(point.checked)pricePlus=val*1;
    else pricePlus=0;
    calculateTotalPrice();
}

var hidden = true;
function togleScroll(){
    d=document.getElementById('str_popis');
    if(hidden){
        hidden = false;
        d.style.overflow='auto';
        d.style.height='700px';
    }else{
        d.style.overflow='hidden';
        hidden = true;
        d.style.height='83px';
    }
  
}
