var inactiveTopIssues = new Array();
function activateArea(elm,img){
	
	var divElm = document.getElementById(elm);
	
	if(inactiveTopIssues[elm]){
		divElm.style.display = "block";
		inactiveTopIssues[elm] = 0;
		img.src=base_url+'public/img/arrow_up.gif';
		
	}else{
		divElm.style.display = "none";
		inactiveTopIssues[elm] = 1;
		img.src=base_url+'public/img/arrow_down.gif';
		
	}
	
}
	function checkFrm(frm){
																
		var reg = /^([\w\d-_]+\.)*[\w\d-_]+\@([\w\d-_]+\.)*[\w\d-_]+\.([a-z]|[A-Z]){2,4}$/;																		
//		var reg = /^([\w\d-_]+\.)*[\w\d-_]+$/;			
		if(!frm.clientEmail.value || !frm.clientEmail.value.match(reg)){																							
			alert("Introduce-ti adresa dvs de email cu care ati creat contul");																			
			frm.clientEmail.focus();
			return false;
		}
		if(!frm.clientPass.value){
			alert("Introduce-ti parola dvs");																	
			frm.clientPass.focus();
			return false;
		}
		return true;
		
	}

