var xmlHttp;



function photo_vote(id,type)



{



	



xmlHttp=GetXmlHttpObject()



if (xmlHttp==null)



  {



  alert ("<?php echo a_browser_does_not_support_AJAX;?>");



  return;



  } 



var url="vote_post.php";



url=url+"?id="+id+"&type="+type;



xmlHttp.onreadystatechange=vote1_stateChanged;



xmlHttp.open("GET",url,true);



xmlHttp.send(null);



} 







function vote1_stateChanged() 



{ 



if (xmlHttp.readyState==4)



{ 



var test_=xmlHttp.responseText;



var text_array=test_.split("alada123");



var te=text_array[1];



document.getElementById("show_inner").innerHTML=text_array[1];


var notes = new PhotoNoteContainer(document.getElementById('PhotoContainer'));

eval(text_array[2]);


}



}







function GetXmlHttpObject()



{



var xmlHttp=null;



try



  {



 



  xmlHttp=new XMLHttpRequest();



  }



catch (e)



  {



 



  try



    {



    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");



    }



  catch (e)



    {



    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");



    }



  }



return xmlHttp;



}