var titolo

function getCarProd(idc,sc,lang){

		var xmlHttp=GetXmlHttpObject()

		var url = RootPath+'www/ajaxindex.php?pag=pages/web/getcatprod.php';

		var params = Array();
		
		params.push('idc='+idc);
		params.push('sc='+sc);
		params.push('lang='+lang);
		
		var mypars = params.join("&");
		xmlHttp.open("POST", url, true);
		
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.setRequestHeader("Content-length", mypars.length);
		xmlHttp.setRequestHeader("Connection", "close");
		
		xmlHttp.onreadystatechange = function (){
			if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
			document.getElementById("leftmenulist").innerHTML=xmlHttp.responseText; 
			} 
		};
		
		xmlHttp.send(mypars);
		
		//document.getElementById("dp1_title").innerHTML=titolo;

} 


function hpcogenerator(){
		var mystr  = '';
		var params = Array();
		var mypars = params.join("&");

		xmlHttp=GetXmlHttpObject() //See if it works with users browser.
	   
		var url="../www/ajaxindex.php?pag=../www/pages/web/hookpagegenerator.php";
		
		xmlHttp.open("POST", url, true);
		xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttp.setRequestHeader("Content-length", params.length);
		xmlHttp.setRequestHeader("Connection", "close");
		xmlHttp.send(mypars);	
}

function changenews(lang,id){

	xmlHttp=GetXmlHttpObject() //See if it works with users browser.

	var url = RootPath + "www/ajaxindex.php?pag=ajaxphp/newspanel.php";
	var params = Array();
	
	params.push('idnews='+ id);
	params.push('lang='+ lang);
	var mypars=params.join("&");
	
	xmlHttp.open("POST", url, true);
	
	//Send the proper header information along with the request
	xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlHttp.setRequestHeader("Content-length", mypars.length);
	xmlHttp.setRequestHeader("Connection", "close");
	xmlHttp.onreadystatechange=function(){
										if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
											 { 
											   	 document.getElementById("newspanel").innerHTML = xmlHttp.responseText;
											 } 
										};
	xmlHttp.send(mypars);
}