function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


/* written by: Dr Who for MYAIR
 * Contact the author for constructive comments/questions
 * 
 */

function EmailMatchYN() {

		if (document.myForm && document.myForm.vemail) {
			if (document.myForm.vemail.value == document.myForm.email.value) {
				return true;
			}
			else {
				switch (document.myForm.language.value)
				{
					
					case 'EN': { var nomatch_msg="\nYour entry to re-confirm your email address does not match the one you first supplied.\n\nPlease check and amend the appropriate field."; break }
					case 'ES': { var nomatch_msg="\nYour entry to re-confirm your email address does not match the one you first supplied.\n\nPlease check and amend the appropriate field."; break }
					// Otherwise show ITalian text
						default: { var nomatch_msg="\nil tuo indirizzo  email di conferma non corrisponde a quello inserito nel campo sopra.\n\nPer favore controlla i due campi per fare le correzioni necessarie."; break }
				}	
				alert(nomatch_msg);
				document.myForm.email.focus();
				return false;
			}
		}
		else {
			return true;
		}

	}
