function contact(){
	if(document.getElementById('nume').value == ''){ alert('Va rugam completati numele dvs.!');document.getElementById('nume').focus();return false;}
	if(document.getElementById('mail').value == ''){ alert('Va rugam completati email-ul!');document.getElementById('mail').focus();return false;}
	if(document.getElementById('telefon').value == ''){ alert('Va rugam completati numarul dumneavoastra de telefon!');document.getElementById('telefon').focus();return false;}
	if(document.getElementById('mesaj').value == ''){ alert('Va rugam adaugati comentarii, sugestii sau nelamuriri!');document.getElementById('mesaj').focus();return false;}
	return true;
}

function about(id){
	//var obj = document.getElementById('m' + id);
	var about= window.open("detalii.html?detalii&id=" + id ,"Detalii",'fullscreen=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + 590 + ',height=' + 580);
  	about.moveTo(100,30);
    about.focus();
}	
function about(id){
	//var obj = document.getElementById('m' + id);
	var about= window.open("detalii.html?detalii&id=" + id ,"Detalii",'fullscreen=no,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + 590 + ',height=' + 580);
  	about.moveTo(100,30);
    about.focus();
}
function flipLayer(id){
	var el = document.getElementById('div_' + id);
	var img = document.getElementById('img_' + id);
	if(el.style.display=='none'){
		el.style.display= 'block';
		img.src = 'images/arrow_v.gif';
	}else{
		el.style.display= 'none';
		img.src = 'images/arrow.gif';
	}

}
function flipLayerBig(id){
	var el = document.getElementById('cat_' + id);
	//var img = document.getElementById('img_' + id);
	if(el.style.display=='none'){
		el.style.display= 'block';
		//img.src = 'images/arrow_v.gif';
	}else{
		el.style.display= 'none';
		//img.src = 'images/arrow.gif';
	}

}
