










function current(str)
{

    $.get("current_curl.php?review=undefined", function(data) {
      $('#p_song').html(data);
    });    
    setTimeout("current()",5000);

}

function next(str)
{

    $.get("next_curl.php?review=undefined", function(data) {
      $('#r_song').html(data);
    });    
    setTimeout("next()",5000);

}

function previous(str)
{

    $.get("previous_curl.php?review=undefined", function(data) {
      $('#q_song').html(data);
    });    
    setTimeout("previous()",5000);

}

/*
function next(str)

{

	//document.getElementById(str).innerHTML=str;

	//alert(str);

if (str=="")

  {

  document.getElementById(str).innerHTML="No Data...";

  return;

  } 

if (window.XMLHttpRequest)

  {// code for IE7+, Firefox, Chrome, Opera, Safari

  xmlhttp=new XMLHttpRequest();

  }

else

  {// code for IE6, IE5

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

  }

xmlhttp.onreadystatechange=function()

  {

  if (xmlhttp.readyState==4 && xmlhttp.status==200)

    {

    document.getElementById("r_song").innerHTML=xmlhttp.responseText;

	//document.getElementById(str).innerHTML="bythe dish";

    }

  }

xmlhttp.open("POST","next_curl.php?review="+str,true);

xmlhttp.send();

setTimeout("next()",5000);

}

function previous(str)

{

	//document.getElementById(str).innerHTML=str;

	//alert(str);

if (str=="")

  {

  document.getElementById(str).innerHTML="No Data...";

  return;

  } 

if (window.XMLHttpRequest)

  {// code for IE7+, Firefox, Chrome, Opera, Safari

  xmlhttp=new XMLHttpRequest();

  }

else

  {// code for IE6, IE5

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

  }

xmlhttp.onreadystatechange=function()

  {

  if (xmlhttp.readyState==4 && xmlhttp.status==200)

    {

    document.getElementById("q_song").innerHTML=xmlhttp.responseText;

	//document.getElementById(str).innerHTML="bythe dish";

    }

  }

xmlhttp.open("POST","previous_curl.php?review="+str,true);

xmlhttp.send();

setTimeout("previous()",5000);

}
*/

