		function validateFormr()
		{
			document.getElementById('name').style.backgroundColor = '#E6FF9A';
			document.getElementById('name').style.borderColor = '#A9D34D';
			document.getElementById('startdate').style.backgroundColor = '#E6FF9A';
			document.getElementById('startdate').style.borderColor = '#A9D34D';
			document.getElementById('roomnr').style.backgroundColor = '#E6FF9A';
			document.getElementById('roomnr').style.borderColor = '#A9D34D';
			document.getElementById('others').style.backgroundColor = '#E6FF9A';
			document.getElementById('others').style.borderColor = '#A9D34D';
			document.getElementById('surname').style.backgroundColor = '#E6FF9A';
			document.getElementById('surname').style.borderColor = '#A9D34D';
			document.getElementById('enddate').style.backgroundColor = '#E6FF9A';
			document.getElementById('enddate').style.borderColor = '#A9D34D';
			document.getElementById('persnr').style.backgroundColor = '#E6FF9A';
			document.getElementById('persnr').style.borderColor = '#A9D34D';
			document.getElementById('phone').style.backgroundColor = '#E6FF9A';
			document.getElementById('phone').style.borderColor = '#A9D34D';
			document.getElementById('type').style.backgroundColor = '#E6FF9A';
			document.getElementById('type').style.borderColor = '#A9D34D';
			document.getElementById('chnr').style.backgroundColor = '#E6FF9A';
			document.getElementById('chnr').style.borderColor = '#A9D34D';
			
			if (document.forms["Rezerva"]["name"].value==null || document.forms["Rezerva"]["name"].value=="")
  			{
				document.getElementById('name').style.borderColor = '#ff0000';
				document.getElementById('name').style.backgroundColor = '#FFCCCC';
  				alert("Numele trebuie sa fie completat!");
				document.getElementById('name').focus();
  				return false;
  			}
			else if (document.forms["Rezerva"]["name"].value.length < 5 )
			{
				document.getElementById('name').style.borderColor = '#ff0000';
				document.getElementById('name').style.backgroundColor = '#FFCCCC';
				alert("numele trebuie sa aiba minim 5 caractere!");
				document.getElementById('name').focus();
  				return false;
			}
			else if (document.forms["Rezerva"]["surname"].value==null || document.forms["Rezerva"]["surname"].value=="")
  			{
				document.getElementById('surname').style.borderColor = '#ff0000';
				document.getElementById('surname').style.backgroundColor = '#FFCCCC';
  				alert("Email-ul trebuie sa fie completat!");
				document.getElementById('surname').focus();
  				return false;
  			}
			else if (document.forms["Rezerva"]["phone"].value==null || document.forms["Rezerva"]["phone"].value=="")
  			{
				document.getElementById('phone').style.borderColor = '#ff0000';
				document.getElementById('phone').style.backgroundColor = '#FFCCCC';
  				alert("Numarul de telefon trebuie sa fie completat!");
				document.getElementById('phone').focus();
  				return false;
  			}
			else if (document.forms["Rezerva"]["startdate"].value==null || document.forms["Rezerva"]["startdate"].value=="")
  			{
				document.getElementById('startdate').style.borderColor = '#ff0000';
				document.getElementById('startdate').style.backgroundColor = '#FFCCCC';
  				alert("Data de sosire trebuie sa fie completata!");
				document.getElementById('startdate').focus();
  				return false;
  			}
			else if (document.forms["Rezerva"]["enddate"].value==null || document.forms["Rezerva"]["enddate"].value=="")
  			{
				document.getElementById('enddate').style.borderColor = '#ff0000';
				document.getElementById('enddate').style.backgroundColor = '#FFCCCC';
  				alert("Data de plecare trebuie sa fie completata!");
				document.getElementById('enddate').focus();
  				return false;
  			}
			/*else if (document.forms["Rezerva"]["startdate"].value >= document.forms["Rezerva"]["enddate"].value)
  			{
				document.getElementById('enddate').style.borderColor = '#ff0000';
				document.getElementById('enddate').style.backgroundColor = '#FFCCCC';
  				alert("Data plecarii trebuie sa fie ulterioara datei de sosire!");
				document.getElementById('enddate').focus();
  				return false;
  			}*/
				else if (document.forms["Rezerva"]["type"].value==null || document.forms["Rezerva"]["type"].value=="")
  			{
				document.getElementById('type').style.borderColor = '#ff0000';
				document.getElementById('type').style.backgroundColor = '#FFCCCC';
  				alert("Completati tipul camerei!");
				document.getElementById('type').focus();
  				return false;
  			}
			else if (document.forms["Rezerva"]["roomnr"].value==null || document.forms["Rezerva"]["roomnr"].value=="")
  			{
				document.getElementById('roomnr').style.borderColor = '#ff0000';
				document.getElementById('roomnr').style.backgroundColor = '#FFCCCC';
  				alert("Numarul de camera trebuie sa fie completat!");
				document.getElementById('roomnr').focus();
  				return false;
  			}
			else if (document.forms["Rezerva"]["persnr"].value==null || document.forms["Rezerva"]["persnr"].value=="")
  			{
				document.getElementById('persnr').style.borderColor = '#ff0000';
				document.getElementById('persnr').style.backgroundColor = '#FFCCCC';
  				alert("Completati numarul de persoane adulte!");
				document.getElementById('persnr').focus();
  				return false;
  			}
			else if (document.forms["Rezerva"]["chnr"].value==null || document.forms["Rezerva"]["chnr"].value=="")
  			{
				document.getElementById('chnr').style.borderColor = '#ff0000';
				document.getElementById('chnr').style.backgroundColor = '#FFCCCC';
  				alert("Completati numarul de copii!");
				document.getElementById('chnr').focus();
  				return false;
  			}
		
		}
