function linkuri(pag){window.location.href=pag;}
function show_hide(show,hide){document.getElementById(show).style.display='block';document.getElementById(hide).style.display='none';if(document.getElementById('raspuns'))document.getElementById('raspuns').innerHTML='Recomanda pagina unui prieten';}
function get_XmlHttp(){var xmlHttp=null;if(window.XMLHttpRequest){xmlHttp=new XMLHttpRequest();}
else if(window.ActiveXObject){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
return xmlHttp;}
function ajax_send(par,php_file){var cerere_http=get_XmlHttp();var datele='ajax='+par;cerere_http.open("POST",php_file,true);cerere_http.setRequestHeader("Content-type","application/x-www-form-urlencoded");cerere_http.send(datele);cerere_http.onreadystatechange=function(){if(cerere_http.readyState==4){if(par!='first'&&php_file=='meteo_g.php'){document.getElementById('meteo').innerHTML=cerere_http.responseText;}}}}
function g_map(localitate){map_w=open("","google_map","width=425,height=605,top=8,left=250,status=yes,toolbar=yes,menubar=yes");map_w.document.open();map_w.document.write("<html><head><title>Google Map</title></head><body>");map_w.document.write("<img src='http://maps.google.com/maps/api/staticmap?center="+localitate+"&amp;zoom=9&amp;size=350x500&amp;sensor=false' width='420' height='600' alt='map' border='0' />");map_w.document.write("</body></html>");map_w.document.close();}
var start_site='http://www.marplo.net/index.php, http://marplo.net/index.php, http://localhost/marplo/';var this_url=document.location.href;var file_php=(this_url.indexOf('cugetari.php',18)>0||start_site.indexOf(this_url)!=-1)?'meniu/traficsite.php':'../meniu/traficsite.php';if(this_url.indexOf('.net/forum/')>0&&this_url.length>29){file_php='../../meniu/traficsite.php';}
ajax_send('first',file_php);if(document.getElementById('srcpub')){var srcpost=document.getElementById('srcpub').getElementsByTagName('span');var srctext=srcpost[0].innerText||srcpost[0].textContent||'';srcpost[0].onclick=function(){linkuri('http://www.marplo.net/src/index.php?s='+encodeURIComponent(srctext)+'&web=www');};}
