function bsmr_rotate(counter,section)
   {
     //alert(counter);
	 var MaxCount=20;
	 var MinCount=0;
	 var prevcount=counter-1;
	 var nextcount=counter+1;
	 counter=parseInt(counter);
	 //alert(counter);
	 if(counter==MinCount)
	 {
	    document.getElementById("nextconter").innerHTML="<a href='javascript:bsmr_rotate(1,&quot;"+section+"&quot;);' ><img src='/img/reviews_scroll_right.gif' width=13px height=96px border=0></a>";
		document.getElementById("prevconter").innerHTML="<img src='/img/reviews_scroll_left.gif' width=13px height=96px border=0>";
     }
	 else if(counter==MaxCount)
	  {
		document.getElementById("nextconter").innerHTML="<img src='/img/reviews_scroll_right.gif' width=13px height=96px border=0>";
		document.getElementById("prevconter").innerHTML="<a href=javascript:bsmr_rotate("+prevcount+",&quot;"+section+"&quot;); ><img src='/img/reviews_scroll_left.gif' width=13px height=96px border=0></a>";
	  }
	 else{
		//alert("hi");
		
		document.getElementById("nextconter").innerHTML="<a href=javascript:bsmr_rotate("+nextcount+",&quot;"+section+"&quot;); ><img src='/img/reviews_scroll_right.gif' width=13px height=96px border=0></a>";
		document.getElementById("prevconter").innerHTML="<a href=javascript:bsmr_rotate("+prevcount+",&quot;"+section+"&quot;); ><img src='/img/reviews_scroll_left.gif' width=13px height=96px border=0></a>";
	 }
	
	document.getElementById("bsmr_cont").innerHTML="<TABLE  border='0' cellspacing='0'  cellpadding='0' width=100%  height=80 align='center' ><tr><td align='center'><span align='center'><img src='/img/plz_wait.gif'></center></td></tr></table>";
	
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function(counter)
    {
    if(xmlHttp.readyState==4)
      {
        document.getElementById("bsmr_cont").innerHTML=xmlHttp.responseText;

		
      }
    }

	//xmlHttp.open("GET","photo_read.php?id="+auto+"&mulid="+id+"",true);
	// xmlHttp.open("GET",path+"?id="+auto+"&mulid="+id+"",true);
    furl="ajax_bsmr_rotate.php?counter="+counter+"&section="+section;
	xmlHttp.open("GET",furl,true);
    xmlHttp.send(null);

   

  }

function bsmr_rotate2(counter,section)
   {
     //alert(counter);
	 var MaxCount=20;
	 var MinCount=0;
	 var prevcount=counter-1;
	 var nextcount=counter+1;
	 counter=parseInt(counter);
	 //alert(counter);
	 if(counter==MinCount)
	 {
	    document.getElementById("nextconter2").innerHTML="<a href='javascript:bsmr_rotate2(1,&quot;"+section+"&quot;);' ><img src='/img/reviews_scroll_right.gif' width=13px height=96px border=0></a>";
		document.getElementById("prevconter").innerHTML="<img src='/img/reviews_scroll_left.gif' width=13px height=96px border=0>";
     }
	 else if(counter==MaxCount)
	  {
		document.getElementById("nextconter2").innerHTML="<img src='/img/reviews_scroll_right.gif' width=13px height=96px border=0>";
		document.getElementById("prevconter2").innerHTML="<a href=javascript:bsmr_rotate2("+prevcount+",&quot;"+section+"&quot;); ><img src='/img/reviews_scroll_left.gif' width=13px height=96px border=0></a>";
	  }
	 else{
		//alert("hi");
		
		document.getElementById("nextconter2").innerHTML="<a href=javascript:bsmr_rotate2("+nextcount+",&quot;"+section+"&quot;); ><img src='/img/reviews_scroll_right.gif' width=13px height=96px border=0></a>";
		document.getElementById("prevconter2").innerHTML="<a href=javascript:bsmr_rotate2("+prevcount+",&quot;"+section+"&quot;); ><img src='/img/reviews_scroll_left.gif' width=13px height=96px border=0></a>";
	 }
	
	document.getElementById("bsmr_cont2").innerHTML="<TABLE  border='0' cellspacing='0'  cellpadding='0' width=100%  height=80 align='center' ><tr><td align='center'><span align='center'><img src='/img/plz_wait.gif'></center></td></tr></table>";
	
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function(counter)
    {
    if(xmlHttp.readyState==4)
      {
        document.getElementById("bsmr_cont2").innerHTML=xmlHttp.responseText;

		
      }
    }

	//xmlHttp.open("GET","photo_read.php?id="+auto+"&mulid="+id+"",true);
	// xmlHttp.open("GET",path+"?id="+auto+"&mulid="+id+"",true);
    furl="ajax_bsmr_rotate.php?counter="+counter+"&section="+section;
	xmlHttp.open("GET",furl,true);
    xmlHttp.send(null);

   

  }

