
function nav(id) {
   ob = document.getElementById(id);
   if (ob.style.display=="none") {
       ob.style.display="";
   } else {
       ob.style.display="none";
   }
}
function bookmarksite(title, url)
	{
		if (document.all)
		window.external.AddFavorite(url, title);
		else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
	}




/* --- Validare sectiune adult content 18+ /.. ----- */
	
	/*function is_adult()
	{
		rez=confirm("Aceasta sectiune este destinata exclusiv persoanelor peste 18 ani.\nApasand 'OK' declarati pe propria raspundere ca aveti varsta corespunzatoare.");
				if(!rez)
			document.location="index.shtml";
		else
		{
			var today = new Date();
			var expire = new Date();
			expire.setTime(today.getTime() + 3600000*24*30);
			document.cookie = 'peste18=ok; expires='+expire.toGMTString()+'; path=/';
		}
	}*/
	
	function conf_str_adult_content() {
		var recCount = "0";
		if (recCount != "0")
		{
		alert("")
		return false
		}
		if (confirm("This site contains adult oriented material and is intended to be viewed by persons 18 years of age and older. \n\nYou must be over the age of 18 years to proceed the form..."))
		{
		document.location.href = ("index.shtml")
		}
		else
		return false;
	}



// Validation - frm_submit_links.
function val_chk__insc_lk()
{
	if (document.ad_lk.Title.value == '')
{
	// Title.
	alert('"Title" field is required.');
		return false;
}
	else if (document.ad_lk.Link.value == '' || document.ad_lk.Link.value == 'http://')
{
	// Link.
	alert('"Link" is required.');
		return false;
}
	/*else if (document.ad_lk.sCateg.emp[document.ad_lk.sCateg.selectedindex].value)
{
	// Subcategory.
	alert('"Subcategory" is required.');
		return false;
}*/
	return true;
}


// Validare - frm_recom.
function val_chk__recom()
{
	if (document.s_recom.nume_exp.value == '')
{
	// Nume expeditor.
	alert('"Nume expeditor" este incorect/incomplet. Recompletati.');
		return false;
}
	else if (document.s_recom.adr_email_exp.value == '')
{
	// Adresa e-mail expeditor.
	alert('"Adresa e-mail expeditor" este incorecta/incompleta. Recompletati.');
		return false;
}
	else if (document.s_recom.adr_email_dest.value == '')
{
	// Adresa e-mail destinatar.
	alert('"Adresa e-mail destinatar" este incorecta/incompleta. Recompletati.');
		return false;
}

	return true;
}
