function clearText() {
	if (document.formmod.mesaj1.value == 'About you and your goals') {
		document.formmod.mesaj1.value = ''
	}
}

function formver() {
  
    if (document.formmod.email.value == '') {
		alert("Please tell your email address");
		document.formmod.email.focus();
		return false;
	}

	s = document.formmod.email.value;
	if ( s.indexOf('@') == -1 ) {
		alert("The e-mail address is incorrect");
		document.formmod.email.focus();
		return false;
	}
	if ( s.length < 8 ) {
		alert("The e-mail address is incorrect");
		document.formmod.email.focus();
		return false;
	}
          
       if (document.formmod.name.value == '') {
		alert("Please enter your full name");
		document.formmod.name.focus();
		return false;
	}
	
	t = document.formmod.name.value;
	if ( t.length < 6 ) {
		alert("Your full name seems to be too short.");
		document.formmod.name.focus();
		return false;
	}
	
	   if (document.formmod.country.value == '0-0') {
		alert("Please choose the country");
		document.formmod.country.focus();
		return false;
	}
	
	 if (document.formmod.ani.value == '') {
		alert("Please enter your age");
		document.formmod.ani.focus();
		return false;
	}
	
	 ck = 0
	 for (i=0;i<document.formmod.rata.length;i++) {
        if (document.formmod.rata[i].checked) {
            	ck = 1;
			}
     }
	 if (ck == 0 ) {
		alert("Please tell how many online sessions per month you are intending to take");
		return false;
	} 	
	  

   return true;

}


function afiseaza(k) {
	var divin = document.getElementById("LessonServices");
    	var divs = divin.getElementsByTagName("div");
		if (divs[k-1].className=='unprot') {
			 divs[k-1].className = 'prot';
		}
		   else {
			  for (i=0; i<divs.length; i++) {
			    if (divs[i].className=='unprot') {
					 divs[i].className='prot';
					 }
			   }
              divs[k-1].className = 'unprot';
		   }
}