function CerereAjax2(url,functieDupa) {
	var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp)
	alert("No AJAX support here");
else
{
 Modificare=new Date().valueOf();
 xmlhttp.open("GET", url + "&DataModificataPtNou=" + Modificare ,true);
 xmlhttp.onreadystatechange=function() {
  if (xmlhttp.readyState==4) {
   raspunsAjax=xmlhttp.responseText;
   eval(functieDupa);
  }
 }
 xmlhttp.send(null)
}
}
function search_finish(answer) {
	html_res=answer;
	document.getElementById("continut").innerHTML=html_res;
}
function arataperioada(perid) {
              document.getElementById("continut").innerHTML="Se incarca .. va rugam asteptati";
		text_res="/cazare_ajax_tarife.php?id_per_sel="+perid+"&V="+0+"&C=" + 18702868;
		res_s=CerereAjax2(text_res,"search_finish(raspunsAjax)");	

}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

