function bookmarksite(title, url)
	{
		if (document.all)
		window.external.AddFavorite(url, title);
		else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
	}



// Validare insc. huburi.
function val_chk__r_ad_hub()
	{
		if (document.frm_adm_insc_hub.DenHb.value == '' || document.frm_adm_insc_hub.DenHb.value == ' ' || document.frm_adm_insc_hub.DenHb.value == '-' || document.frm_adm_insc_hub.DenHb.value == '_')
	{
		// DenHb.
			alert('Campul "Denumire Hub" este incorect/incomplet. Recompletati');
			return false;
	}

		else if (document.frm_adm_insc_hub.AdresaHb.value == '' || document.frm_adm_insc_hub.AdresaHb.value == ' ' || document.frm_adm_insc_hub.AdresaHb.value == '-' || document.frm_adm_insc_hub.AdresaHb.value == '_')
	{
		// AdresaHb.
			alert('Campul "Adresa Hub" este incorect/incomplet. Recompletati');
			return false;
	}

		else if (document.frm_adm_insc_hub.MinShareHb.value == '' || document.frm_adm_insc_hub.MinShareHb.value == ' ' || document.frm_adm_insc_hub.MinShareHb.value == '-' || document.frm_adm_insc_hub.MinShareHb.value == '_')
	{
		// MinShareHb.
			alert('Campul "Min. Share Hub" este incorect/incomplet. Recompletati');
			return false;
	}
		
		else if (document.frm_adm_insc_hub.OrasHb.value == '' || document.frm_adm_insc_hub.OrasHb.value == ' ' || document.frm_adm_insc_hub.OrasHb.value == '-' || document.frm_adm_insc_hub.OrasHb.value == '_')
	{
		// OrasHb.
			alert('Campul "Oras Hub" este incorect/incomplet. Recompletati');
			return false;
	}
		
		else if (document.frm_adm_insc_hub.DescHb.value == '' || document.frm_adm_insc_hub.DescHb.value == ' ' || document.frm_adm_insc_hub.DescHb.value == '-' || document.frm_adm_insc_hub.DescHb.value == '_')
	{
		// DescHb.
			alert('Campul "Descriere hub" este incorect/incomplet. Recompletati');
			return false;
	}
		
		else if (document.frm_adm_insc_hub.ISPHb.value == '' || document.frm_adm_insc_hub.ISPHb.value == ' ' || document.frm_adm_insc_hub.ISPHb.value == '-' || document.frm_adm_insc_hub.ISPHb.value == '_')
	{
		// ISPHb.
			alert('Campul "ISP Hub" este incorect/incomplet. Recompletati');
			return false;
	}
		
		else if (document.frm_adm_insc_hub.OwnerHb.value == '' || document.frm_adm_insc_hub.OwnerHb.value == ' ' || document.frm_adm_insc_hub.OwnerHb.value == '-' || document.frm_adm_insc_hub.OwnerHb.value == '_')
	{
		// OwnerHb.
			alert('Campul "Owner Hub" este incorect/incomplet. Recompletati');
			return false;
	}

		else if (document.frm_adm_insc_hub.AdrEmail.value == '' || document.frm_adm_insc_hub.AdrEmail.value == ' ' || document.frm_adm_insc_hub.AdrEmail.value == '-' || document.frm_adm_insc_hub.AdrEmail.value == '_')
	{
		// AdrEmail.
			alert('Campul "Adresa e-mail" este incorect/incomplet. Recompletati');
			return false;
	}
		
		else if (document.frm_adm_insc_hub.AdrWeb.value == '' || document.frm_adm_insc_hub.AdrWeb.value == ' ' || document.frm_adm_insc_hub.AdrWeb.value == '-' || document.frm_adm_insc_hub.AdrWeb.value == '_')
	{
		// AdrEmail.
			alert('Campul "Adresa web" este incorect/incomplet. Recompletati');
			return false;
	}
			return true;
	}





// Validare insc. recomandari filme.
function val_chk__r_ad_film()
	{
		if (document.frm_adm_insc_film.Den_film.value == '' || document.frm_adm_insc_film.Den_film.value == ' ' || document.frm_adm_insc_film.Den_film.value == '-' || document.frm_adm_insc_film.Den_film.value == '_')
	{
		// DenFilm.
			alert('Campul "Denumire film" este incorect/incomplet. Recompletati');
			return false;
	}

		if (document.frm_adm_insc_film.OwnerFilm.value == '' || document.frm_adm_insc_film.OwnerFilm.value == ' ' || document.frm_adm_insc_film.OwnerFilm.value == '-' || document.frm_adm_insc_film.OwnerFilm.value == '_')
	{
		// OwnerFilm.
			alert('Campul "Owner film" este incorect/incomplet. Acest camp este obligatoriu. Recompletati');
			return false;
	}

		if (document.frm_adm_insc_film.OwnerEmailFilm.value == '' || document.frm_adm_insc_film.OwnerEmailFilm.value == ' ' || document.frm_adm_insc_film.OwnerEmailFilm.value == '-' || document.frm_adm_insc_film.OwnerEmailFilm.value == '_')
	{
		// OwnerEmailFilm.
			alert('Campul "E-mail owner film" este incorect/incomplet. Acest camp este obligatoriu. Recompletati');
			return false;
	}

			return true;
	}


// Validare insc. tag-uri film.
function val_chk__r_ad_tag_film()
	{
		if (document.frm_adm_insc_taguri_film.N_tag.value == '' || document.frm_adm_insc_taguri_film.N_tag.value == ' ' || document.frm_adm_insc_taguri_film.N_tag.value == '-' || document.frm_adm_insc_taguri_film.N_tag.value == '_')
	{
		// DenTagFilm.
			alert('Campul "Nume tag" este incorect/incomplet. Recompletati');
			return false;
	}

			return true;
	}


// Validare insc. tag-uri hub.
function val_chk__r_ad_tag_hub()
	{
		if (document.frm_adm_insc_taguri_hub.N_tag.value == '' || document.frm_adm_insc_taguri_hub.N_tag.value == ' ' || document.frm_adm_insc_taguri_hub.N_tag.value == '-' || document.frm_adm_insc_taguri_film.N_tag.value == '_')
	{
		// DenTagHub.
			alert('Campul "Nume tag" este incorect/incomplet. Recompletati');
			return false;
	}

			return true;
	}




// Validare search filme.
function val_chk__r_ad_s_film()
	{
		if (document.frm_adm_s_filme.n_film.value == '' || document.frm_adm_s_filme.n_film.value == ' ' || document.frm_adm_s_filme.n_film.value == '-' || document.frm_adm_s_filme.n_film.value == '_' || document.frm_adm_s_filme.n_film.value == 'cauta aici...')
	{
		// Denfilm.
			alert('Numele filmului pe care il cauti este incorect/incomplet.\n Incearca sa-ti aduci aminte cum se numea filmul...');
			return false;
	}

			return true;
	}



// Validare insc. comentarii filme.
function val_chk__r_ad_com_film()
	{
		if (document.frm_adm_insc_com_film.CntCom.value == '' || document.frm_adm_insc_com_film.CntCom.value == ' ' || document.frm_adm_insc_com_film.CntCom.value == '-' || document.frm_adm_insc_com_film.CntCom.value == '_')
	{
		// CntCom.
			alert('Campul "Comentariul tau" este incorect/incomplet. Acest camp este obligatoriu. Recompletati');
			return false;
	}

		if (document.frm_adm_insc_com_film.OwnerFilm.value == '' || document.frm_adm_insc_com_film.OwnerFilm.value == ' ' || document.frm_adm_insc_com_film.OwnerFilm.value == '-' || document.frm_adm_insc_com_film.OwnerFilm.value == '_')
	{
		// OwnerFilm.
			alert('Campul "Numele tau" este incorect/incomplet. Acest camp este obligatoriu. Recompletati');
			return false;
	}

	if (document.frm_adm_insc_com_film.OwnerEmailFilm.value == '' || document.frm_adm_insc_com_film.OwnerEmailFilm.value == ' ' || document.frm_adm_insc_com_film.OwnerEmailFilm.value == '-' || document.frm_adm_insc_com_film.OwnerEmailFilm.value == '_')
	{
		// OwnerEmailFilm.
			alert('Campul "Email" este incorect/incomplet. Acest camp este obligatoriu. Recompletati');
			return false;
	}

			return true;
	}













// Validare insc. link-uri.
function val_chk__r_ad_link()
	{
		if (document.r_ad_link.DenAnv.value == '' || document.r_ad_link.DenAnv.value == ' ' || document.r_ad_link.DenAnv.value == '-' || document.r_ad_link.DenAnv.value == '_')
	{
		// Den anv.
			alert('"Denumirea" este incorecta/incompleta. Recompletati');
			return false;
	}

		else if (document.r_ad_link.LinkAnv.value == '' || document.r_ad_link.LinkAnv.value == ' ' || document.r_ad_link.LinkAnv.value == '-' || document.r_ad_link.LinkAnv.value == '_')
	{
		// Link anv.
			alert('"Link-ul" este incorect/incomplet. Recompletati');
			return false;
	}
			return true;
	}

function val_f__search_spa() {
	if (document.search_spa.Cnts_loc.value == '' || document.search_spa.Cnts_loc.value == ' ' || document.search_spa.Cnts_loc.value == '...') {
	
	// Cnts_loc.
	alert('Nu ati completat nimic. Recompletati.\n Va rugam sa va incadrati in max. 150 de caractere.');
		return false;
	}
	return true;
}
/*
function $(v) { return(document.getElementById(v)); }
function agent(v) { return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); }
function xy(e,v) { return(v?(agent('msie')?event.clientY+document.body.scrollTop:e.pageY):(agent('msie')?event.clientX+document.body.scrollTop:e.pageX)); }

function dragOBJ(d,e) {

    function drag(e) { if(!stop) { d.style.top=(tX=xy(e,1)+oY-eY+'px'); d.style.left=(tY=xy(e)+oX-eX+'px'); } }

    var oX=parseInt(d.style.left),oY=parseInt(d.style.top),eX=xy(e),eY=xy(e,1),tX,tY,stop;

    document.onmousemove=drag; document.onmouseup=function(){ stop=1; document.onmousemove=''; document.onmouseup=''; };

}
*/

function swapDivs (parentId,id,objClick) {
	var divsClick = document.getElementById('tp_left').getElementsByTagName('div');
	for (var i=0; i<divsClick.length; i++) {
		divsClick[i].className=divsClick[i].className.replace('_active','');
	}
	var divs = document.getElementById(parentId).getElementsByTagName('div');
	for (var i=0; i<divs.length; i++) {
		if (divs[i].parentNode==document.getElementById(parentId)) {
			divs[i].style.display='none';
		}
	}
	document.getElementById(id).style.display='';
	objClick.className=objClick.className+'_active';
}




