function focus_meu(){
		document.fxg.nume.focus();
	}



 function verifica_lungime(obiect){
 	caseta = eval("document.fxg." + obiect + ".value");
	if(caseta.length > 4){ img = eval("document.images." + obiect);
						   img.src = 'image/checkmark.gif';
						   return true;
						 }
	else {
		img = eval("document.images." + obiect);
		img.src = 'image/warning.gif';
		return false;
	}
 }


function verifica_lungime4(obiect){
 	caseta = eval("document.fxg." + obiect + ".value");
	if(caseta.length > 9){ img = eval("document.images." + obiect);
						   img.src = 'image/checkmark.gif';
						   return true;
						 }
	else {
		img = eval("document.images." + obiect);
		img.src = 'image/warning.gif';
		return false;
	}
 }


 				function chkemail(){
					with(document.fxg.email)
					{
					 apos=value.indexOf("@")
					 dotpos=value.lastIndexOf(".")
					 if (apos<1 || dotpos-apos<2)
					  { img = eval("document.images.email");
                    	img.src = 'image/warning.gif';
                    	return false;
                      }
					else { img = eval("document.images.email");
     					   img.src = 'image/checkmark.gif';
     					   return true;
     					 }
					}
				 }

	function verificare(){
  		if((verifica_lungime('nume')) && (chkemail()) && (verifica_lungime4('mesaj')) )
		  alert('Va multumesc ca l-ati completat! ');

		 else{
		  alert('Va rog completati campurile corect!');
          return false;}
	}
