function fnGreenStars(tmpStar){
  //DUMP OLD VALUES
  for(x=1;x<=5;x++){
   document.getElementById('idStar'+x).src='/images/green_empty.gif';
	}	
  //FILL NEW VALUES
  for(x=1;x<=tmpStar;x++){
   document.getElementById('idStar'+x).src='/images/green_full.gif';
	}
	//FILL INPUT VALUE
	document.getElementById('idReviewerStars').value=tmpStar;
	document.getElementById('idStarsClick').value=tmpStar;	
}

function fnGreenPops(tmpStar){
 if(document.getElementById('idStarsClick').value==''){
  //DUMP OLD VALUES
  for(x=1;x<=5;x++){
   document.getElementById('idStar'+x).src='/images/green_empty.gif';
	}	
  //FILL NEW VALUES
  for(x=1;x<=tmpStar;x++){
   document.getElementById('idStar'+x).src='/images/green_full.gif';
	}
	//FILL INPUT VALUE
	document.getElementById('idReviewerStars').value=tmpStar;
 }	
}

function fnGreenPopsOut(){
 if(document.getElementById('idStarsClick').value==''){
  //DUMP OLD VALUES
	document.getElementById('idReviewerStars').value='';
  for(x=1;x<=5;x++){
   document.getElementById('idStar'+x).src='/images/green_empty.gif';
	}
 }	
}

/* 
function fnYellowStars(tmpMovie, tmpStar){
  //DUMP OLD VALUES
  for(x=1;x<=5;x++){
   document.getElementById('idStar'+x).src='/images/yellow_empty.gif';
	}	
  //FILL NEW VALUES
  for(x=1;x<=tmpStar;x++){
   document.getElementById('idStar'+x).src='/images/yellow_full.gif';
	}
	//FILL INPUT VALUE
	document.getElementById('idStars').value=tmpStar;
	ajaxStarFunction(tmpMovie, tmpStar);		
}
*/

function fnYellowStars(tmpMovie, tmpStar){
  //DUMP OLD VALUES
  for(x=1;x<=5;x++){
   document.getElementById('idStar'+x).src='/images/yellow_empty.gif';
	}	
  //FILL NEW VALUES
  for(x=1;x<=tmpStar;x++){
   document.getElementById('idStar'+x).src='/images/yellow_full.gif';
	}
	//FILL INPUT VALUE
	document.getElementById('idStars').value=tmpStar;
	document.getElementById('idStarsClick').value=tmpStar;	
}

 
function fnYellowPops(tmpStar){
 if(document.getElementById('idStarsClick').value==''){
  //DUMP OLD VALUES
  for(x=1;x<=5;x++){
   document.getElementById('idStar'+x).src='/images/yellow_empty.gif';
	}	
  //FILL NEW VALUES
  for(x=1;x<=tmpStar;x++){
   document.getElementById('idStar'+x).src='/images/yellow_full.gif';
	}
	//FILL INPUT VALUE
	document.getElementById('idStars').value=tmpStar;
 }	
}

function fnYellowPopsOut(){
 if(document.getElementById('idStarsClick').value==''){
  //DUMP OLD VALUES
	document.getElementById('idStars').value='';
  for(x=1;x<=5;x++){
   document.getElementById('idStar'+x).src='/images/yellow_empty.gif';
	}
 }	
}

/*
function ajaxStarFunction(tmpMovie, tmpStars)
{
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()
    {
    if(xmlHttp.readyState==4)
      {

		  document.getElementById('idBlountCountyStarsDiv').innerHTML=xmlHttp.responseText;
									
      }
    }
  xmlHttp.open("GET","/xml/xml_update_listing_rating.php?id="+tmpMovie+"&stars="+tmpStars,true);
  xmlHttp.send(null);
  }
*/