
var xmlHttp

function showHint(str,id)
{
if (str.length==0)
  { 
  document.getElementById("txtHint").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="/rate.php";
url=url+"?v="+str;
url=url+"&id="+id;
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
//document.getElementById("status").innerHTML="Loading...";

xmlHttp.send(null);
} 

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
//document.getElementById("status").innerHTML="Done!";
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}







<!--
//if (document.images)
//{
//  pic1= new Image(122,22); 
//  pic1.src="/images/dark_button.jpg"; 
//
//}
//-->



function c_rate(the_var) {
////alert("Mouse is on image number: " + the_var);
//star1_start = document.star1.src;
//star2_start = document.star2.src;
//star3_start = document.star3.src;
//star4_start = document.star4.src;
//star5_start = document.star5.src;
//
//
//if(the_var==1){
//document.star1.src = "/images/star-r1.jpg";
//}
//
//if(the_var==2){
//document.star1.src = "/images/star-r1.jpg";
//document.star2.src = "/images/star-r2.jpg";
//}
//
//if(the_var==3){
//document.star1.src = "/images/star-r1.jpg";
//document.star2.src = "/images/star-r2.jpg";
//document.star3.src = "/images/star-r3.jpg";
//}
//
//if(the_var==4){
//document.star1.src = "/images/star-r1.jpg";
//document.star2.src = "/images/star-r2.jpg";
//document.star3.src = "/images/star-r3.jpg";
//document.star4.src = "/images/star-r4.jpg";
//}
//
//if(the_var==5){
//document.star1.src = "/images/star-r1.jpg";
//document.star2.src = "/images/star-r2.jpg";
//document.star3.src = "/images/star-r3.jpg";
//document.star4.src = "/images/star-r4.jpg";
//document.star5.src = "/images/star-r5.jpg";
//}

}


function d_rate(the_var) {

//document.star1.src = star1_start;
//document.star2.src = star2_start;
//document.star3.src = star3_start;
//document.star4.src = star4_start;
//document.star5.src = star5_start;

}




function clear_search(){

if(document.search_form.search_q.value == "Enter a search"){
document.search_form.search_q.value = "";
}

}


	function popUp(URL,windowName,width,height) {	
	var features =
       	'width='        + width +
        ',height='      + height +
        ',location=no' +
        ',menubar=no' +
        ',scrollbars=no' +
        ',status=no' +
        ',toolbar=no' +
        ',resizable=yes,top=10,left=10';
    	window.open (URL, windowName, features);

}



function toggleDivOL( elemID )
{
	var elem = document.getElementById( elemID );
	if( elem.style.position != 'relative' )
	
	{
		elem.style.position = 'relative';
		elem.style.left = '0px';
	}
	else
	{
		elem.style.position = 'absolute';
		elem.style.left = '-4000px';
	}
}

