function popHelp () {
		openNew = window.open('motor-de-cautare.php', 'FrontEnd', 'width=320,height=500,resize=yes,resizable=no,scroll=yes,scrollbars=yes,location=no,toolbar=no,menubar=no,status=no,left=100,top=100');
		openNew.focus();
 	}
	
function feedback () {
		/*openNew = window.open('feedback.php', 'FrontEnd', 'width=550,height=400,resize=yes,resizable=yes,scroll=yes,scrollbars=yes,location=no,toolbar=no,menubar=no,status=no,left=20,top=20');
		openNew.focus();*/
 	}
	
function about () {
		openNew = window.open('about.htm', 'FrontEnd', 'width=300,height=433,resize=no,resizable=no,scroll=no,scrollbars=no,location=no,toolbar=no,menubar=no,status=no,left=300,top=150');
		openNew.focus();
 	}

function focus(){document.murfi.caut.focus();}

function toggleDiv(divName) {
	thisDiv = document.getElementById(divName);
	if (thisDiv) {
		if (thisDiv.style.display == "none") {
			thisDiv.style.display = "block";
//			return "block";
		}
		else {
			thisDiv.style.display = "none";
//			return "none";
		}
	}
	else {
		errorString = "Error: Could not locate div with id: " + divName;
		alert(errorString);
	}
}




var xmlHttp;
var page_id;
var query;

function voteaza(vot,page_id,query)
	{
	
	
		if (vot.length==0)
  			{ 
 			 document.getElementById("txtVot").innerHTML="";
			 
  			return;
 			 }
	
	xmlHttp=GetXmlHttpObject();
	
	if (xmlHttp==null)
	  {
		  alert ("Browserul dvs nu suporta sistemul de vot AJAX!");
		  return;
	  } 
	var url="exprima_vot.php";
	url=url+"?vot="+vot;
	url=url+"&page_id="+page_id;
	url=url+"&query="+query;
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
	} 

function stateChanged() 
	{ 
		if (xmlHttp.readyState==4)
			{ 
				 document.getElementById("txtVot").innerHTML=xmlHttp.responseText;
			}
	}

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;
	}