var xmlHttp
function GetFan(filmid,idmembre,typ)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&film="+filmid;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}




function GetFans(filmid,idmembre,typ)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&film="+filmid;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}


function GetDVD(filmid,idmembre,typ,pays,notdvd,annee)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&film="+filmid;
url=url+"&pays="+pays;
url=url+"&notdvd="+notdvd;
url=url+"&annee="+annee;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}


function processListBtns(div,action) {
	var btns = div.getElementsByTagName('a');
	var imgs = div.getElementsByTagName('img');
	var btn_display = action == 'hide' ? 'none' : '';
	var img_display = action == 'hide' ? '' : 'none';
	for(var i=0;i<btns.length;i++) {
		$(btns[i]).setStyle('display',btn_display);
	}
	for(var i=0;i<imgs.length;i++) {
		$(imgs[i]).setStyle('display',img_display);
	}
}




function Getliste(filmid,idmembre,typ,ville,lieu,langue,datvu)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&film="+filmid;
url=url+"&ville="+ville;
url=url+"&lieu="+lieu;
url=url+"&lang="+langue;
url=url+"&datvu="+datvu;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}


function Getliste2(filmid,idmembre,typ,listid,position)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&film="+filmid;
url=url+"&listid="+listid;
url=url+"&position="+position;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}

function addvidfav(idmembre,typ,vid,filmid)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&vid="+vid;
url=url+"&film="+filmid;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}

function addcine(idmembre,typ,cineid)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
cineid_val = parseInt(cineid);

var obj = document.getElementById(cineid_val);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&cineid="+cineid;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}


function addnewsfav(newsid,typ,idmembre)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&id="+idmembre;
url=url+"&typ="+typ;
url=url+"&news="+newsid;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}


function sendfriend(filmid2,typ,vid,mail1,mail2,mess)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&filmid2="+filmid2;
url=url+"&typ="+typ;
url=url+"&vid="+vid;
url=url+"&mail1="+mail1;
url=url+"&mail2="+mail2;
url=url+"&mess="+mess;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}

function sendcomm(filmid,typ,vid,idmembre,note,mess)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&filmid="+filmid;
url=url+"&typ="+typ;
url=url+"&vid="+vid;
url=url+"&id="+idmembre;
url=url+"&note="+note;
url=url+"&mess="+mess;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}

function sendcomm2(filmid,typ,vid,idmembre,note,mess)
//create new function
{
xmlHttp=GetXmlHttpObject()
typ_val = parseInt(typ);
mess = mess.replace(/([\n])/g,"<br />");
mess = mess.replace(/’/g,"'");
mess = mess.replace(/œ/g,"oe");
var url = "http://www.cinemovies.fr/includes/modules/list_req.php";
var params = "id="+idmembre+"&typ="+typ+"&cmd=GetFan&filmid="+filmid+"&note="+note+"&mess="+encodeURIComponent(mess)+"&vid="+vid+"&sid="+Math.random();
xmlHttp.open("POST", url, true);

//Send the proper header information along with the request
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1");
xmlHttp.setRequestHeader("Content-length", params.length);
xmlHttp.setRequestHeader("Connection", "close");

xmlHttp.onreadystatechange=FetchComplete


xmlHttp.send(params);
}


function addcrit(idmembre,typ,filmid,note,textecrit)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
textecrit = textecrit.replace(/([\n])/g,"<br />");
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&filmid="+filmid;
url=url+"&typ="+typ;
url=url+"&note="+note;
url=url+"&id="+idmembre;
url=url+"&textecrit="+textecrit;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}

function addcrit2(idmembre,typ,filmid,note,textecrit)
//create new function
{
xmlHttp=GetXmlHttpObject()
typ_val = parseInt(typ);
textecrit = textecrit.replace(/([\n])/g,"<br />");
textecrit = textecrit.replace(/’/g,"'");
textecrit = textecrit.replace(/œ/g,"oe");
var url = "http://www.cinemovies.fr/includes/modules/list_req.php";
var params = "id="+idmembre+"&typ="+typ+"&cmd=GetFan&filmid="+filmid+"&note="+note+"&textecrit="+encodeURIComponent(textecrit)+"&sid="+Math.random();
xmlHttp.open("POST", url, true);

//Send the proper header information along with the request
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1");
xmlHttp.setRequestHeader("Content-length", params.length);
xmlHttp.setRequestHeader("Connection", "close");

xmlHttp.onreadystatechange=FetchComplete


xmlHttp.send(params);
}


function addcritseri2(idmembre,typ,filmid,saison,episode,note,textecrit)
//create new function
{
xmlHttp=GetXmlHttpObject()
typ_val = parseInt(typ);
textecrit = textecrit.replace(/([\n])/g,"<br />");
var url = "http://www.cinemovies.fr/includes/modules/list_req.php";
var params = "id="+idmembre+"&typ="+typ+"&cmd=GetFan&filmid="+filmid+"&note="+note+"&episode="+episode+"&saison="+saison+"&textecrit="+textecrit+"&sid="+Math.random();
xmlHttp.open("POST", url, true);

//Send the proper header information along with the request
xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-1");
xmlHttp.setRequestHeader("Content-length", params.length);
xmlHttp.setRequestHeader("Connection", "close");

xmlHttp.onreadystatechange=FetchComplete


xmlHttp.send(params);
}

function addcritseri(idmembre,typ,filmid,saison,episode,note,textecrit)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
textecrit = textecrit.replace(/([\n])/g,"<br />");

var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&filmid="+filmid;
url=url+"&typ="+typ;
url=url+"&note="+note;
url=url+"&id="+idmembre;
url=url+"&saison="+saison;
url=url+"&episode="+episode;
url=url+"&textecrit="+textecrit;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}



function addnotepi(idmembre,typ,filmid,episode,note)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&serid="+filmid;
url=url+"&typ="+typ;
url=url+"&note="+note;
url=url+"&id="+idmembre;
url=url+"&episode="+episode;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}



function addanecseri(idmembre,typ,serid,saison,episode,textanec)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
textanec = textanec.replace(/([\n])/g,"<br />");
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&serid="+serid;
url=url+"&typ="+typ;
url=url+"&saison="+saison;
url=url+"&episode="+episode;
url=url+"&id="+idmembre;
url=url+"&textanec="+textanec;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}


function addanecfilm(idmembre,typ,filmid,textanec)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
textanec = textanec.replace(/([\n])/g,"<br />");
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&filmid="+filmid;
url=url+"&typ="+typ;
url=url+"&id="+idmembre;
url=url+"&textanec="+textanec;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}

function addcitseri(idmembre,typ,serid,saison,episode,textanec)
//create new function
{
xmlHttp=GetXmlHttpObject()
//set variable
if (xmlHttp==null)
{
alert ("Your browser doesn’t support HTTP Request. please use Firefox, Internet Explorer, or Safari")
// if browser doesn’t support xmlHttp, show error message
}
typ_val = parseInt(typ);
textanec = textanec.replace(/([\n])/g,"<br />");
var url="http://www.cinemovies.fr/includes/modules/list_req.php"
//set javascript to go to file & order webserver to execute it
url=url+"?cmd=GetFan"
url=url+"&serid="+serid;
url=url+"&typ="+typ;
url=url+"&saison="+saison;
url=url+"&episode="+episode;
url=url+"&id="+idmembre;
url=url+"&textanec="+textanec;
//send variable command to execute the script
url=url+"&sid="+Math.random()
//send random id
xmlHttp.onreadystatechange=FetchComplete
//if the state of xmlHttp change, go to FetchComplete function
xmlHttp.open("GET",url,true)
//use get method
xmlHttp.send(null)
}



function FetchComplete()
//this is our defined function to get the AJAX status
{
/*
there is 5 readystate status :
0=uninitialized
1=loading
2=loaded
3=interactive
4=complete
you can modify the status state at your own
*/
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
//if AJAX state is complete (4)
{
	if ( typ_val==1 ) {
		document.getElementById("Result1").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==101 ) {
		document.getElementById("Result1").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==102 ) {
		document.getElementById("Result1").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==103 ) {
		document.getElementById("Result3").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==104 ) {
		document.getElementById("Result3").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==105 ) {
		document.getElementById("Result100").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==106 ) {
		document.getElementById("Result100").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==10 ) {
		document.getElementById("Result1").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==2 ) {
		document.getElementById("Result2").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==20 ) {
		document.getElementById("Result2").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==21 ) {
		document.getElementById("Resultdvd").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==22 ) {
		document.getElementById("Resultdvd").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==3 ) {
		document.getElementById("Result3").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==30 ) {
		document.getElementById("Result3").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==100 ) {
		document.getElementById("Result100").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==200 ) {
		document.getElementById("Resultlist").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==300 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==3001 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==302 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==304 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==305 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==306 ) {
		document.getElementById("Resultfavn").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==307 ) {
		document.getElementById("Resultfavn").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==308 ) {
		cineid_val = parseInt(cineid_val);
		var obj = document.getElementById(cineid_val);
		obj.innerHTML=xmlHttp.responseText
	}
	if ( typ_val==309 ) {
		cineid_val = parseInt(cineid_val);
		var obj = document.getElementById(cineid_val);
		obj.innerHTML=xmlHttp.responseText
	}
	if ( typ_val==400 ) {
		document.getElementById("mailfriend").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==401 ) {
		document.getElementById("mailfriend").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==402 ) {
		document.getElementById("mailfriend").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==500 ) {
		document.getElementById("sendcomm").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==501 ) {
		document.getElementById("sendcomm").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==502 ) {
		document.getElementById("sendcomm").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==600 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
		replaceStars(0);
		clearStarTimer();
		document.getElementById("txtnote").innerHTML="";
	}
	if ( typ_val==607 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
		replaceStars(0);
		clearStarTimer();
		document.getElementById("txtnote").innerHTML="";
	}
	if ( typ_val==702 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
		replaceStars(0);
		clearStarTimer();
		document.getElementById("txtnote").innerHTML="";
	}
	if ( typ_val==7020 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
	}
	if ( typ_val==70200 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
	}
	if ( typ_val==702000 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
		replaceStars(0);
		clearStarTimer();
		document.getElementById("txtnote").innerHTML="";
	}
	if ( typ_val==700 ) {
		document.getElementById("Resultcrit2").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
	}
	if ( typ_val==704 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
	}
	if ( typ_val==701 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
		document.getElementById("review").innerHTML="";
	}
	if ( typ_val==703 ) {
		document.getElementById("Resultcrit").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==301 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==3011 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==303 ) {
		document.getElementById("Resultfav").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==1000 ) {
		document.getElementById("Result100").innerHTML=xmlHttp.responseText
	}
	if ( typ_val==100 ) {
		$('edit_vu').setStyle('display', 'none');
		$('btn_edit_vu').setStyle('display', 'block');
	}
	if ( typ_val==200 ) {
		$('edit_lists').setStyle('display', 'none');
		$('liste').options[0].selected = true;
		$('position').options[0].selected = true;
		$('position').disabled = true;
	}
	if ( typ_val==400 ) {
		document.getElementById("share_email_field").value="";
		document.getElementById("share_email_field2").value="";
		document.getElementById("share_message").innerHTML="";
	}
	if ( typ_val==500 ) {
		replaceStars(0);
		clearStarTimer();
		document.getElementById("txtnote").innerHTML="";
		document.getElementById("commentaire").innerHTML="";
		document.getElementById("commentaire").disabled= true;
	}
//get element where the id is “Result", in this case it goes to the <div> tag
}
if (xmlHttp.readyState==1 || xmlHttp.readyState=="loading")
//if AJAX state is loading (loading)
{
	if ( typ_val==1 ) {
		document.getElementById("Result1").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==101 ) {
		document.getElementById("Result1").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==102 ) {
		document.getElementById("Result1").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==103 ) {
		document.getElementById("Result3").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==104 ) {
		document.getElementById("Result3").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==105 ) {
		document.getElementById("Result100").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==106 ) {
		document.getElementById("Result100").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==10 ) {
		document.getElementById("Result1").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==2 ) {
		document.getElementById("Result2").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==20 ) {
		document.getElementById("Result2").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==21 ) {
		document.getElementById("Resultdvd").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==22 ) {
		document.getElementById("Resultdvd").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==3 ) {
		document.getElementById("Result3").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==30 ) {
		document.getElementById("Result3").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==300 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==3001 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==301 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==3011 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==302 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==303 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==304 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==305 ) {
		document.getElementById("Resultfav").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==306 ) {
		document.getElementById("Resultfavn").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==307 ) {
		document.getElementById("Resultfavn").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==308 ) { 
		cineid_val = parseInt(cineid_val);
		var obj = document.getElementById(cineid_val);
		obj.innerHTML="<div style=\"WIDTH: 50px;\"><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></div>"
	}
	if ( typ_val==309 ) { 
		cineid_val = parseInt(cineid_val);
		var obj = document.getElementById(cineid_val);
		obj.innerHTML="<div style=\"WIDTH: 50px;\"><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></div>"
	}
	if ( typ_val==400 ) {
		document.getElementById("mailfriend").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==401 ) {
		document.getElementById("mailfriend").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==402 ) {
		document.getElementById("mailfriend").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==500 ) {
		document.getElementById("sendcomm").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==501 ) {
		document.getElementById("sendcomm").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==502 ) {
		document.getElementById("sendcomm").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==600 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==607 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==702 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==704 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==7020 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==70200 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==702000 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==700 ) {
		document.getElementById("Resultcrit2").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==701 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==703 ) {
		document.getElementById("Resultcrit").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==100 ) {
		document.getElementById("Result100").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==200 ) {
		document.getElementById("Resultlist").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}
	if ( typ_val==1000 ) {
		document.getElementById("Result100").innerHTML="<center><img src=\"http://www.cinemovies.fr/img/icones/processing.gif\"/></center>"
	}

//get element where the id is “Result", in this case it goes to the <div> tag
//send the loading image (loading.gif) that show us the data is being prepared
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// check browser firefox, opera 8.0+, safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// browser Internet Explorer
try
{
// IE 6.0+
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
// IE 5.0
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
//return the value
}




