<!--
var xmlhttp

function showHint(url,cil){

	xmlhttp=GetXmlHttpObject();
	
	if (xmlhttp==null){
	   alert ("Váš prohlížeč nepodporuje XMLHTTP!");
	   return;
	}




	xmlhttp.onreadystatechange=function(){

			if (xmlhttp.readyState==4){
			document.getElementById(cil).innerHTML=xmlhttp.responseText;

	  		}
		}


	url=url+"&amp;sid="+Math.random();
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}



function showHintKosik(url,cil,dalsifce){

	xmlhttp=GetXmlHttpObject();
	
	if (xmlhttp==null){
	   alert ("Váš prohlížeč nepodporuje XMLHTTP!");
	   return;
	}
	
	xmlhttp.onreadystatechange=function(){

			if (xmlhttp.readyState==4){
				document.getElementById(cil).innerHTML=xmlhttp.responseText;
				
			
				if(dalsifce=="kosik-vlozit"){
					if(typeof next_fce_post_kosik_vlozit=='function'){

						next_fce_post_kosik_vlozit();
					}
				}

	  		}
		}


	url=url+"&amp;sid="+Math.random();
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}




function showHintObjednavka(url){

	xmlhttp=GetXmlHttpObject();
	
	if (xmlhttp==null){
	   alert ("Váš prohlížeč nepodporuje XMLHTTP!");
	   return;
	}
	
	
	xmlhttp.onreadystatechange=function(){

		if (xmlhttp.readyState==4){
		

		}
	}

	url=url+"&amp;sid="+Math.random();
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}





function GetXmlHttpObject(){
	if (window.XMLHttpRequest){
	   // code for IE7+, Firefox, Chrome, Opera, Safari
	   return new XMLHttpRequest();
	}

	if (window.ActiveXObject){
	   // code for IE6, IE5
	   return new ActiveXObject("Microsoft.XMLHTTP");
	}

	return null;
}






function showHint_post(url,params,cil,zpusob,dalsifce){

	xmlhttp=GetXmlHttpObject();
	
	if (xmlhttp==null){
	   alert ("Váš prohlížeč nepodporuje XMLHTTP!");
	   return;
	}




	xmlhttp.onreadystatechange=function(){

			if (xmlhttp.readyState==4){

				if(zpusob==1){
					document.getElementById(cil).innerHTML=xmlhttp.responseText;
				}

				if(zpusob==2){
					document.getElementById(cil).value=xmlhttp.responseText;
				}
			
				
				if(dalsifce=="kosik-vlozit"){
					if(typeof next_fce_post_kosik_vlozit=='function'){
						next_fce_post_kosik_vlozit();
					}
				}
				
				
				if(dalsifce=="poslat-dotaz"){
					if(typeof next_fce_post_poslat_dotaz=='function'){
						next_fce_post_poslat_dotaz();
					}
				}
				
				if(dalsifce=="poslat-odkaz"){
					if(typeof next_fce_post_poslat_odkaz=='function'){
						next_fce_post_poslat_odkaz();
					}
				}
				
				window.status=xmlhttp.readyState;
				
			} else {
			
				window.status=xmlhttp.readyState;

	  		}
		}

	
	url=url+"&amp;sid="+Math.random();
	
	xmlhttp.open("POST",url,true);

	xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Content-Encoding", "multipart/form-data");
	xmlhttp.setRequestHeader("Content-length", params.length);
	xmlhttp.setRequestHeader("Connection", "close");

	xmlhttp.send(params);
}


     
// -->
