function affich(id) {
	 if(document.getElementById(id)) {
			 if(document.getElementById(id).style.display=='block') {
					 document.getElementById(id).style.visibility='hidden';
					 document.getElementById(id).style.display='none';
				} else {
					 document.getElementById(id).style.visibility='visible';
					 document.getElementById(id).style.display='block';
				}
		}
}
function justAffich(id) {
		document.getElementById(id).style.visibility='visible';
		document.getElementById(id).style.display='block';
}
function cacher(id) {
		document.getElementById(id).style.visibility='hidden';
		document.getElementById(id).style.display='none';
}

function verification(){
	 var send = 1;
	 var cond_name = document.getElementById('cond_name');
	 var cond_firstname = document.getElementById('cond_firstname');
	 var cond_address = document.getElementById('cond_address');
	 var cond_city = document.getElementById('cond_city');
	 var cond_cp = document.getElementById('cond_cp');
	 var cond_birth = document.getElementById('cond_birth');
	 var cond_email = document.getElementById('cond_email');
	 var cond_tel1 = document.getElementById('cond_tel1');
	 var cond_login = document.getElementById('cond_login');
	 var cond_passwd = document.getElementById('cond_passwd');
	 var cond_passwd2 = document.getElementById('cond_passwd2');
		
		if(cond_name.value == "") {
				send = 0;
				cond_name.style.borderColor = "#FF0000";
				document.getElementById('label_cond_name').style.color = "#FF0000";
		} else {
				cond_name.style.borderColor = "#696744";
				document.getElementById('label_cond_name').style.color = "#555";
		}
		if(cond_firstname.value == "") {
				send = 0;
				cond_firstname.style.borderColor = "#FF0000";
				document.getElementById('label_cond_firstname').style.color = "#FF0000";
		} else {
				cond_firstname.style.borderColor = "#696744";
				document.getElementById('label_cond_firstname').style.color = "#555";
		}
		if(cond_address.value == "") {
				send = 0;
				cond_address.style.borderColor = "#FF0000";
				document.getElementById('label_cond_address').style.color = "#FF0000";
		} else {
				cond_address.style.borderColor = "#696744";
				document.getElementById('label_cond_address').style.color = "#555";
		}
		if(cond_cp.value == "") {
				send = 0;
				cond_cp.style.borderColor = "#FF0000";
				document.getElementById('label_cond_cp').style.color = "#FF0000";
		} else {
				cond_cp.style.borderColor = "#696744";
				document.getElementById('label_cond_cp').style.color = "#555";
		}
		if(cond_city.value == "") {
				send = 0;
				cond_city.style.borderColor = "#FF0000";
				document.getElementById('label_cond_city').style.color = "#FF0000";
		} else {
				cond_city.style.borderColor = "#696744";
				document.getElementById('label_cond_city').style.color = "#555";
		}
		if(cond_birth.value == "") {
				send = 0;
				cond_birth.style.borderColor = "#FF0000";
				document.getElementById('label_cond_birth').style.color = "#FF0000";
		} else {
				cond_birth.style.borderColor = "#696744";
				document.getElementById('label_cond_birth').style.color = "#555";
		}
		if(cond_email.value == "") {
				send = 0;
				cond_email.style.borderColor = "#FF0000";
				document.getElementById('label_cond_email').style.color = "#FF0000";
		} else {
				cond_email.style.borderColor = "#696744";
				document.getElementById('label_cond_email').style.color = "#555";
		}
		if(cond_tel1.value == "") {
				send = 0;
				cond_tel1.style.borderColor = "#FF0000";
				document.getElementById('label_cond_tel1').style.color = "#FF0000";
		} else {
				cond_tel1.style.borderColor = "#696744";
				document.getElementById('label_cond_tel1').style.color = "#555";
		}
		if(cond_login.value == "") {
				send = 0;
				cond_login.style.borderColor = "#FF0000";
				document.getElementById('label_cond_login').style.color = "#FF0000";
		} else {
				cond_login.style.borderColor = "#696744";
				document.getElementById('label_cond_login').style.color = "#555";
		}
		if(cond_passwd.value == "") {
				send = 0;
				cond_passwd.style.borderColor = "#FF0000";
				document.getElementById('label_cond_passwd').style.color = "#FF0000";
		} else {
				cond_passwd.style.borderColor = "#696744";
				document.getElementById('label_cond_passwd').style.color = "#555";
		}
		if(cond_passwd2.value == "" || cond_passwd.value != cond_passwd2.value) {
				send = 0;
				cond_passwd2.style.borderColor = "#FF0000";
				document.getElementById('label_cond_passwd2').style.color = "#FF0000";
		} else {
				cond_passwd2.style.borderColor = "#696744";
				document.getElementById('label_cond_passwd2').style.color = "#555";
		}
		
		if(send==0) {
			 return false;
		} else {
			 document.forms['inscript'].submit();
		}
		/*
 	if (document.getElementById("cond_name").value == '' ||  document.getElementById("cond_firstname").value == '' || document.getElementById("cond_address").value == ''  || document.getElementById("cond_city").value == '' || document.getElementById("cond_birth").value == '' || document.getElementById("cond_tel1").value == ''|| document.getElementById("cond_email").value == '' || document.getElementById("cond_login").value == '' || document.getElementById("cond_passwd").value == '' || document.getElementById("cond_passwd2").value == '' || document.getElementById("cond_passwd").value != document.getElementById("cond_passwd2").value ) {
   	document.getElementById("warnning").style.visibility = 'visible';
   	document.getElementById("warnning").style.display = 'block';
				return false;
				
	 }*/
	 
}

function verificationSociete() {
	 var send = 1;
	 var soc_name = document.getElementById('soc_name');
	 var soc_name_contact = document.getElementById('soc_name_contact');
	 var soc_email = document.getElementById('soc_email');
	 var soc_login = document.getElementById('soc_login');
	 var soc_passwd = document.getElementById('soc_passwd');
	 var soc_passwd2 = document.getElementById('soc_passwd2');
		
		if(soc_name.value == "") {
				send = 0;
				soc_name.style.borderColor = "#FF0000";
				document.getElementById('label_soc_name').style.color = "#FF0000";
		} else {
				soc_name.style.borderColor = "#696744";
				document.getElementById('label_soc_name').style.color = "#555";
		}
		if(soc_name_contact.value == "") {
				send = 0;
				soc_name_contact.style.borderColor = "#FF0000";
				document.getElementById('label_soc_name_contact').style.color = "#FF0000";
		} else {
				soc_name_contact.style.borderColor = "#696744";
				document.getElementById('label_soc_name_contact').style.color = "#555";
		}
		if(!emailCheck(soc_email.value)) {
				send = 0;
				soc_email.style.borderColor = "#FF0000";
				document.getElementById('label_soc_email').style.color = "#FF0000";
		} else {
				soc_email.style.borderColor = "#696744";
				document.getElementById('label_soc_email').style.color = "#555";
		}
		if(soc_login.value == "") {
				send = 0;
				soc_login.style.borderColor = "#FF0000";
				document.getElementById('label_soc_login').style.color = "#FF0000";
		} else {
				soc_login.style.borderColor = "#696744";
				document.getElementById('label_soc_login').style.color = "#555";
		}
		if(soc_passwd.value == "") {
				send = 0;
				soc_passwd.style.borderColor = "#FF0000";
				document.getElementById('label_soc_passwd').style.color = "#FF0000";
		} else {
				soc_passwd.style.borderColor = "#696744";
				document.getElementById('label_soc_passwd').style.color = "#555";
		}
		if(soc_passwd2.value == "" || soc_passwd2.value!=soc_passwd.value) {
				send = 0;
				soc_passwd2.style.borderColor = "#FF0000";
				document.getElementById('label_soc_passwd2').style.color = "#FF0000";
		} else {
				soc_passwd2.style.borderColor = "#696744";
				document.getElementById('label_soc_passwd2').style.color = "#555";
		}
		
		if(send==0) {
			 document.getElementById('warnning').style.visibility = "visible";
			 document.getElementById('warnning').style.display = "block";
			 return false;
		} else {
			 document.getElementById('warnning').style.visibility = "hidden";
			 document.getElementById('warnning').style.display = "none";
				document.forms['inscript'].submit();
		}
			
}

function verificationNewOffre() {
	 var send = 1;
	 var off_title = document.getElementById('off_title');
	 var off_email = document.getElementById('off_email');
	 var off_descript = document.getElementById('off_descript');
		
		if(off_title.value == "") {
				send = 0;
				off_title.style.borderColor = "#FF0000";
				document.getElementById('label_off_title').style.color = "#FF0000";
		} else {
				off_title.style.borderColor = "#696744";
				document.getElementById('label_off_title').style.color = "#555";
		}
	 if(!emailCheck(off_email.value)) {
				send = 0;
				off_email.style.borderColor = "#FF0000";
				document.getElementById('label_off_email').style.color = "#FF0000";
		} else {
				off_email.style.borderColor = "#696744";
				document.getElementById('label_off_email').style.color = "#555";
		}
		if(off_descript.value == "") {
				send = 0;
				off_descript.style.borderColor = "#FF0000";
				document.getElementById('label_off_descript').style.color = "#FF0000";
		} else {
				off_descript.style.borderColor = "#696744";
				document.getElementById('label_off_descript').style.color = "#555";
		}
		
		if(send==0) {
			 document.getElementById('warnning').style.visibility = "visible";
			 document.getElementById('warnning').style.display = "block";
			 return false;
		} else {
			 document.getElementById('warnning').style.visibility = "hidden";
			 document.getElementById('warnning').style.display = "none";
				document.forms['form_depot'].submit();
		}
			
}

function verification_entrprise(){
 	/*if (document.getElementById("soc_name").value == '' ||  document.getElementById("soc_contact_name").value == '' || document.getElementById("soc_passwrd").value == '' || document.getElementById("cond_passwd2").value == '' || document.getElementById("soc_passwrd2").value != document.getElementById("soc_passwrd2").value ) {
   	document.getElementById("warnning").style.visibility = 'visible';
   	document.getElementById("warnning").style.display = 'block';
				return;
				
	 }*/
	 document.forms['inscript'].submit();
}

function verificationModif(){
 	if (document.getElementById("cond_name").value == '' ||  document.getElementById("cond_firstname").value == '' || document.getElementById("cond_address").value == ''  || document.getElementById("cond_city").value == '' || document.getElementById("cond_birth").value == '' || document.getElementById("cond_tel1").value == ''|| document.getElementById("cond_email").value == '' || document.getElementById("cond_login").value == '' || document.getElementById("cond_passwd").value == '' || document.getElementById("cond_passwd2").value == '' || document.getElementById("cond_passwd").value != document.getElementById("cond_passwd2").value ) {
   	document.getElementById("warnning").style.visibility = 'visible';
   	document.getElementById("warnning").style.display = 'block';
				return;
				
	 }
	 document.forms['formCond'].submit();
}

function verifPostuler() {
		var send = 1;
  var post_name = document.getElementById('post_name').value;
  var post_email = document.getElementById('post_email').value;
  var post_objet = document.getElementById('post_objet').value;
		if(post_name == "") {
				send = 0;
				document.getElementById('post_name').style.borderColor = "#FF0000";
				document.getElementById('label_post_name').style.color = "#FF0000";
		} else {
				document.getElementById('post_name').style.borderColor = "#696744";
				document.getElementById('label_post_name').style.color = "#555";
		}
		if(!emailCheck(post_email)) {
				send = 0;
				document.getElementById('post_email').style.borderColor = "#FF0000";
				document.getElementById('label_post_email').style.color = "#FF0000";
		} else {
				document.getElementById('post_email').style.borderColor = "#696744";
				document.getElementById('label_post_email').style.color = "#555";
		}
		if(post_objet == "") {
				send = 0;
				document.getElementById('post_objet').style.borderColor = "#FF0000";
				document.getElementById('label_post_objet').style.color = "#FF0000";
		} else {
				document.getElementById('post_objet').style.borderColor = "#696744";
				document.getElementById('label_post_objet').style.color = "#555";
		}
		
		if(send==0) {
			 return false;
		}
}

function verif_cv_general_info() {
		var send = 1;
  var cond_cv_titre = document.getElementById('cond_cv_titre').value;
  var func_id = document.getElementById('func_id').value;
  var sect_id = document.getElementById('sect_id').value;
		if(cond_cv_titre == "") {
				send = 0;
				document.getElementById('cond_cv_titre').style.borderColor = "#FF0000";
				document.getElementById('label_cond_cv_titre').style.color = "#FF0000";
		} else {
				document.getElementById('cond_cv_titre').style.borderColor = "#696744";
				document.getElementById('label_cond_cv_titre').style.color = "#555";
		}
		if(func_id == "") {
				send = 0;
				document.getElementById('func_id').style.borderColor = "#FF0000";
				document.getElementById('label_func_id').style.color = "#FF0000";
		} else {
				document.getElementById('func_id').style.borderColor = "#696744";
				document.getElementById('label_func_id').style.color = "#555";
		}
		if(sect_id == "") {
				send = 0;
				document.getElementById('sect_id').style.borderColor = "#FF0000";
				document.getElementById('label_sect_id').style.color = "#FF0000";
		} else {
				document.getElementById('sect_id').style.borderColor = "#696744";
				document.getElementById('label_sect_id').style.color = "#555";
		}
		
		if(send==0) {
			 return false;
		}
}

function verif_add_formation() {
  var StartDate_month = document.getElementById('StartDate_month');
  var StartDate_year = document.getElementById('StartDate_year');
  var EndDate_month = document.getElementById('EndDate_month');
  var EndDate_year = document.getElementById('EndDate_year');
  var form_name = document.getElementById('form_name');
  var form_etab = document.getElementById('form_etab');
  var form_city = document.getElementById('form_city');

		var send = 1;

  if(StartDate_month.value == "") {
				send = 0;
				StartDate_month.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				StartDate_month.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(StartDate_year.value == "") {
				send = 0;
				StartDate_year.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				StartDate_year.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(EndDate_month.value == "") {
				send = 0;
				EndDate_month.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				EndDate_month.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(EndDate_year.value == "") {
				send = 0;
				EndDate_year.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				EndDate_year.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(form_name.value == "") {
				send = 0;
				form_name.style.borderColor = "#FF0000";
				document.getElementById('label_form_name').style.color = "#FF0000";
		} else {
				form_name.style.borderColor = "#696744";
				document.getElementById('label_form_name').style.color = "#555";
		}
  if(form_etab.value == "") {
				send = 0;
				form_etab.style.borderColor = "#FF0000";
				document.getElementById('label_form_etab').style.color = "#FF0000";
		} else {
				form_etab.style.borderColor = "#696744";
				document.getElementById('label_form_etab').style.color = "#555";
		}
  if(form_city.value == "") {
				send = 0;
				form_city.style.borderColor = "#FF0000";
				document.getElementById('label_form_city').style.color = "#FF0000";
		} else {
				form_city.style.borderColor = "#696744";
				document.getElementById('label_form_city').style.color = "#555";
		}


		if(send==0) {
			 return false;
		} else {
			  document.formCond.action="addform.php";
		}
}

function verifFormation() {
  var niv_id = document.getElementById('niv_id');
		var send = 1;

  if(niv_id.value == "") {
				send = 0;
				niv_id.style.borderColor = "#FF0000";
				document.getElementById('label_niv_id').style.color = "#FF0000";
		} else {
				niv_id.style.borderColor = "#696744";
				document.getElementById('label_niv_id').style.color = "#555";
		}
		if(send == 0) {
				return false;
		}
				
}


function verif_add_expreience() {
  var StartDate_month = document.getElementById('StartDate_month');
  var StartDate_year = document.getElementById('StartDate_year');
  var EndDate_month = document.getElementById('EndDate_month');
  var EndDate_year = document.getElementById('EndDate_year');
		var exp_name = document.getElementById('exp_name');
		var con_id = document.getElementById('con_id');
		var func_id = document.getElementById('func_id');
		var sect_id = document.getElementById('sect_id');
		var exp_entr = document.getElementById('exp_entr');
		var exp_city = document.getElementById('exp_city');

		var send = 1;

  if(StartDate_month.value == "") {
				send = 0;
				StartDate_month.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				StartDate_month.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(StartDate_year.value == "") {
				send = 0;
				StartDate_year.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				StartDate_year.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(EndDate_month.value == "") {
				send = 0;
				EndDate_month.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				EndDate_month.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(EndDate_year.value == "") {
				send = 0;
				EndDate_year.style.borderColor = "#FF0000";
				document.getElementById('label_periode').style.color = "#FF0000";
		} else {
				EndDate_year.style.borderColor = "#696744";
				document.getElementById('label_periode').style.color = "#555";
		}
  if(exp_name.value == "") {
				send = 0;
				exp_name.style.borderColor = "#FF0000";
				document.getElementById('label_exp_name').style.color = "#FF0000";
		} else {
				exp_name.style.borderColor = "#696744";
				document.getElementById('label_exp_name').style.color = "#555";
		}
  if(con_id.value == "") {
				send = 0;
				con_id.style.borderColor = "#FF0000";
				document.getElementById('label_con_id').style.color = "#FF0000";
		} else {
				con_id.style.borderColor = "#696744";
				document.getElementById('label_con_id').style.color = "#555";
		}
  if(func_id.value == "") {
				send = 0;
				func_id.style.borderColor = "#FF0000";
				document.getElementById('label_func_id').style.color = "#FF0000";
		} else {
				func_id.style.borderColor = "#696744";
				document.getElementById('label_func_id').style.color = "#555";
		}
  if(sect_id.value == "") {
				send = 0;
				sect_id.style.borderColor = "#FF0000";
				document.getElementById('label_sect_id').style.color = "#FF0000";
		} else {
				sect_id.style.borderColor = "#696744";
				document.getElementById('label_sect_id').style.color = "#555";
		}
  if(exp_entr.value == "") {
				send = 0;
				exp_entr.style.borderColor = "#FF0000";
				document.getElementById('label_exp_entr').style.color = "#FF0000";
		} else {
				exp_entr.style.borderColor = "#696744";
				document.getElementById('label_exp_entr').style.color = "#555";
		}
  if(exp_city.value == "") {
				send = 0;
				exp_city.style.borderColor = "#FF0000";
				document.getElementById('label_exp_city').style.color = "#FF0000";
		} else {
				exp_city.style.borderColor = "#696744";
				document.getElementById('label_exp_city').style.color = "#555";
		}


		if(send==0) {
			 return false;
		} else {
			  document.formCond.action="addexp.php";
		}
}

function verifExperience() {
  var dur_id = document.getElementById('dur_id');
		var send = 1;

  if(dur_id.value == "") {
				send = 0;
				dur_id.style.borderColor = "#FF0000";
				document.getElementById('label_dur_id').style.color = "#FF0000";
		} else {
				dur_id.style.borderColor = "#696744";
				document.getElementById('label_dur_id').style.color = "#555";
		}
		if(send == 0) {
				return false;
		}
				
}


function addLang() {
  var lang_id = document.getElementById('lang_id');
  var nivl_id = document.getElementById('nivl_id');
		var send = 1;

  if(lang_id.value == "") {
				send = 0;
				lang_id.style.borderColor = "#FF0000";
				document.getElementById('label_lang_id').style.color = "#FF0000";
		} else {
				lang_id.style.borderColor = "#696744";
				document.getElementById('label_lang_id').style.color = "#555";
		}
  if(nivl_id.value == "") {
				send = 0;
				nivl_id.style.borderColor = "#FF0000";
				document.getElementById('label_nivl_id').style.color = "#FF0000";
		} else {
				nivl_id.style.borderColor = "#696744";
				document.getElementById('label_nivl_id').style.color = "#555";
		}
		if(send == 0) {
				return false;
		} else {
				document.formCond.action="addcompl.php";
		}
}

function addInformatic() {
  var info_id = document.getElementById('info_id');
		var niveau = document.getElementById('niveau');
		var send = 1;

  if(info_id.value == "") {
				send = 0;
				info_id.style.borderColor = "#FF0000";
				document.getElementById('label_info_id').style.color = "#FF0000";
		} else {
				info_id.style.borderColor = "#696744";
				document.getElementById('label_info_id').style.color = "#555";
		}
  if(niveau.value == "") {
				send = 0;
				niveau.style.borderColor = "#FF0000";
				document.getElementById('label_niveau').style.color = "#FF0000";
		} else {
				niveau.style.borderColor = "#696744";
				document.getElementById('label_niveau').style.color = "#555";
		}
		if(send == 0) {
				return false;
		} else {
				document.formCond.action="addcompInfo.php";
		}
}




function emailCheck (emailStr) {

		var checkTLD=1;
		var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
		var emailPat=/^(.+)@(.+)$/;
		var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
		var validChars="\[^\\s" + specialChars + "\]";
		var quotedUser="(\"[^\"]*\")";
		var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
		var atom=validChars + '+';
		var word="(" + atom + "|" + quotedUser + ")";
		var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
		var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
		var matchArray=emailStr.match(emailPat);
		if (matchArray==null) {
				return false;
		}
		var user=matchArray[1];
		var domain=matchArray[2];
		for (i=0; i<user.length; i++) {
				if (user.charCodeAt(i)>127) {
						return false;
				}
		}
		for (i=0; i<domain.length; i++) {
		  if (domain.charCodeAt(i)>127) {
		    return false;
			 }
		}
		if (user.match(userPat)==null) {
		  return false;
		}
		var IPArray=domain.match(ipDomainPat);
		if (IPArray!=null) {
		  for (var i=1;i<=4;i++) {
		    if (IPArray[i]>255) {
		      return false;
					 }
		  }
		  return true;
		}
		var atomPat=new RegExp("^" + atom + "$");
		var domArr=domain.split(".");
		var len=domArr.length;
		for (i=0;i<len;i++) {
				if (domArr[i].search(atomPat)==-1) {
		    return false;
				}
		}
		if (checkTLD && domArr[domArr.length-1].length!=2 && domArr[domArr.length-1].search(knownDomsPat)==-1) {
		  return false;
		}
		if (len<2) {
		  return false;
		}
		return true;
}


function verif_form_demande_cond() {
	 var param = 0;
	 if(document.getElementById('off_name').value=="") {
			 document.getElementById('off_name').style.borderColor="#FF0000";
			 param = 1;
		} else {
			 document.getElementById('off_name').style.borderColor="#696744";
		}
	 if(document.getElementById('off_email').value=="") {
			 document.getElementById('off_email').style.borderColor="#FF0000";
			 param = 1;
		} else {
			 document.getElementById('off_email').style.borderColor="#696744";
		}
	 if(document.getElementById('off_descript').value=="") {
			 document.getElementById('off_descript').style.borderColor="#FF0000";
			 param = 1;
		} else {
			 document.getElementById('off_descript').style.borderColor="#696744";
		}
	 if(document.getElementById('off_title').value=="") {
			 document.getElementById('off_title').style.borderColor="#FF0000";
			 param = 1;
		} else {
			 document.getElementById('off_title').style.borderColor="#696744";
		}
		if(param == 0) {
				document.forms['formCond'].submit();
		} else {
			 document.getElementById('warning').style.display='block';
			 document.getElementById('warning').style.visibility = 'visible';
				return false;
		}
}
