function voteaza_felicitare(id,idfel)
{
	var id;
	var idfel;
	ajax_loadContent('voteaza_fel','/libs/php/voteaza_felicitarea.php?id=' + idfel + '&nota=' + id);
}
function voteaza_profil(id,idfel)
{
	var id;
	var idfel;
	ajax_loadContent('voteaza_profil','/libs/php/voteaza_profil.php?id=' + idfel + '&nota=' + id);
}
function seteaza_acesta(id)
{
	var id;
	document.getElementById("member_seach").value = id;
}
function cauta_membru()
{
		var d = document.getElementById("member_seach");
		if(d.value != "")
		{
			ajax_loadContent('cauta_membru','/libs/php/cauta_membru.php?id=' + d.value);
		}
		else
		{
			alert("te rugam sa scrii un nume de membru");
		}
}
function voteaza_felicitare2(id,idfel)
{
	var id;
	var idfel;
	ajax_loadContent('voteaza_fel','/libs/php/voteaza_felicitarea2.php?id=' + idfel + '&nota=' + id);
}
function voteaza_album(id,idfel)
{
	var id;
	var idfel;
	ajax_loadContent('voteaza_fel','/libs/php/voteaza_album.php?id=' + idfel + '&nota=' + id);
}
function voteaza_poza(id,idfel)
{
	var id;
	var idfel;
	ajax_loadContent('voteaza_poza','/libs/php/voteaza_poza.php?id=' + idfel + '&nota=' + id);
}
function help_div(divs,actiune)
{
	var divs;
	var actiune;
	ajax_loadContent(divs,'/help.php?actiune=' + actiune)
}

function mareste_poza(id)
{
	//alert("http://store.e-felicitari.net/membri_poze/mari/" + id);
	window.open("/watermark.php?src=../store/membri_poze/normal/" + id,
"CNN_WindowName",
 "menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
}
function show_divs(id,id2)
{
	var id;
	var id2;
	document.getElementById(id).style.display = "block";
	document.getElementById(id2).style.display = "none";
}
function show_felicitari(tip,id)
{
	var tip;
	var id;
	if(tip == 1)
	{
		//alert("http://store.e-felicitari.net/membri_poze/mari/" + id);
		window.open("/show-felicitare.php?id=" + id + "&tip=" + tip,
		"CNN_WindowName",
 		"width=650,height=500,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
	}
	if(tip == 2)
	{
		//alert("http://store.e-felicitari.net/membri_poze/mari/" + id);
		window.open("/show-felicitare.php?id=" + id + "&tip=" + tip,
		"CNN_WindowName",
 		"width=820,height=620,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
	}
	
}
function show_felicitari2(tip,id)
{
	var tip;
	var id;
	if(tip == 1)
	{
		//alert("http://store.e-felicitari.net/membri_poze/mari/" + id);
		window.open("/show-felicitare2.php?id=" + id + "&tip=" + tip,
		"CNN_WindowName",
 		"width=650,height=500,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
	}
	if(tip == 2)
	{
		//alert("http://store.e-felicitari.net/membri_poze/mari/" + id);
		window.open("/show-felicitare2.php?id=" + id + "&tip=" + tip,
		"CNN_WindowName",
 		"width=820,height=620,menubar=no,location=no,resizable=yes,scrollbars=yes,status=no");
	}
	
}
var persoane = 1;
function adauga_persoana()
{
	if(persoane == 100)
	{
		alert("ai voie maxim 100 de persoane sa adaugi");
		return;
	}
	document.getElementById("rand_"+persoane).innerHTML = '<div class="rand inal4"><div class="left_tab mar3"><input type="text" name="pt[]" value="" class="form_imput"  /></div>    <div class="right_tab mar3">      <input type="text" name="ptem[]" value="" class="form_imput" />    </div>  </div><div id="rand_'+(persoane+1)+'"></div>';
  persoane++;
}
function vezi_original_membru(id)
{
	var id;
	window.open("/poza-originala.php?id="+id, "CNN_WindowName", "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=800,height=600");
}
function vezi_membru(id)
{
	var id;
	window.open("/poza-membru.php?id="+id, "CNN_WindowName", "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=800,height=600");
}
function adauga_tag_uploadate(id,tip)
{
	var id;
	var tip;
	var d;
	var e;
	d = document.getElementById("tag_text").value;
	e = document.getElementById("tag_denumire").value;
	//alert('/taguri.php?actiune=adauga&cuvant=' + d + '&id=' + id + '&tip=' + tip);
	ajax_loadContent("loading_tag",'/taguri.php?actiune=adauga&cuvant=' + d + '&id=' + id + '&tip=' + tip + '&denumire=' + e);
}
navHover = function() {
	var lis = document.getElementById("navmenu").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);