function clearInput(e){ 
if(e.value=='cautare')e.value=""; 
} 


function MM_jumpMenu(targ,selObj,restore){ //v3.0
			  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
			  if (restore) selObj.selectedIndex=0;
}

function showHide(shID) {
	if (document.getElementById(shID)) {
		if (document.getElementById(shID+'-show').style.display != 'none') {
			document.getElementById(shID+'-show').style.display = 'none';
			document.getElementById(shID).style.display = 'block';
		}
		else {
			document.getElementById(shID+'-show').style.display = 'inline';
			document.getElementById(shID).style.display = 'none';
		}
	}
}

function album_public_privat(objRad){
				if (objRad.value=="0") document.getElementById("textbox").style.display='none'; //hide textbox
				else document.getElementById("textbox").style.display='block'; //show textbox
}

function bookmarksite(title, url) {
		if (document.all)
			window.external.AddFavorite(url, title);
		else if (window.sidebar)
			window.sidebar.addPanel(title, url, "");
}
			

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;
}

function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}

function checkUncheckAll(theElement) {
var theForm = theElement.form, z = 0;
	 for(z=0; z<theForm.length;z++){
	      if(theForm[z].type == 'checkbox' && theForm[z].name != 'ch_toate'){
		        if(theForm[z].name != 'ch_accept_conditii') theForm[z].checked = theElement.checked;
		  }
     }
}

function open_fereastra(cale,x,y){
        eval("window.open('"+cale+"','','height='+y+',width='+x+',type=fullWindow,alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0, z-lock=1,screenX=0,screeny=0,left=10,top=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,fullscreen=no')");
}



function open_fereastra_fixa(cale){
eval("window.open('"+cale+"','',' toolbar=no, menubar=no,scrollbars=yes,resizable=no,height=500,width=500,top=10,left=10')");
}

