function checkForm(){
	var theForm = document.ajout_panier;
	if ((theForm.total.value=="0") || (theForm.total.value==""))  {
		alert("Please chose at least one product");
		return;
	}
	if ((theForm.fdp.value=="0") || (theForm.fdp.value=="")) {
		alert("Please chose a country for delivery");
		return;
	}
	if (theForm.pays.value=="") {
		alert("Please chose a country for delivery");
		return;
	}
	theForm.action="index.php";
	theForm.submit();
}

function verif_nombre(champ) {
	var chiffres = new RegExp("[0-9]");
	var verif;
	for(x = 0; x < champ.value.length; x++) {
		verif = chiffres.test(champ.value.charAt(x));
		if(verif == false){
			champ.value = champ.value.substr(0,x) + champ.value.substr(x+1,champ.value.length-x+1);
			x--;
		}
	}
}

function FunctionTotaux() {
	var total = 0;
	var fdp = 0;
	var theForm = document.ajout_panier;
	total = theForm.total.value;
	if (total=="")
		total = 0;
	fdp = theForm.fdp.value;
	if (fdp=="")
		fdp = 0;
	totaux = (parseInt(total) + parseInt(fdp));
	theForm.totaux.value=totaux;
	theForm.totaux2.value=totaux;
}

function FunctionTotal(pays) {
	var total = 0;
	var nb_normaux = 0;
	var nb_fontaines = 0;
	var price1 = parseFloat(unescape('%31%37%35'));
	var price2 = parseFloat(unescape('%32%30%30%30'));
	var price3 = parseFloat(unescape('%31%33%38%30'));
	var price4 = parseFloat(unescape('%36%39'));
	var price5 = parseFloat(unescape('%39%35'));
	var price6 = parseFloat(unescape('%34%35'));
	var price158 = parseFloat(unescape('%35%30'));
	var price7 = parseFloat(unescape('%31%34%30'));
	var price8 = parseFloat(unescape('%32%39%35'));
	var price9 = parseFloat(unescape('%32%35%30'));
	var price10 = parseFloat(unescape('%37%35'));
	var price11 = parseFloat(unescape('%36%39'));
	
	var price91 = parseFloat(unescape('%32%39%35'));
	var price92 = parseFloat(unescape('%31%32%35'));
	var price93 = parseFloat(unescape('%32%35%30'));
	var price94 = parseFloat(unescape('%31%34%35'));
	var price95 = parseFloat(unescape('%36%35'));

	var theForm = document.ajout_panier;
	pays = theForm.pays.value;
	/*total = theForm.total.value;
	total = (parseInt(total) + (parseInt(euro) * parseInt(nbr.value)));
	theForm.total.value=total;*/

	var solidPerfume7g = [
							'preludelove9',
							'love9',
							'beyond9',
							'tears6',
							'liaison9',
							'cruel9',
							'heaven9',
							'straight9',
							'back2black9',
							'sweetredemption5',
							'collection4'
						]
	for(var sp7g=0; sp7g<solidPerfume7g.length; sp7g++) {
		if (theForm.elements[solidPerfume7g[sp7g]] && theForm.elements[solidPerfume7g[sp7g]].value!="") {
			total = total + (price95*parseInt(theForm.elements[solidPerfume7g[sp7g]].value));
			nb_normaux += parseInt(theForm.elements[solidPerfume7g[sp7g]].value);
		}
	}

	if (theForm.preludelove1 && theForm.preludelove1.value!="") {
		total = total + (price1*parseInt(theForm.preludelove1.value));
		nb_normaux += parseInt(theForm.preludelove1.value);
	}/*
	if (theForm.preludelove2 && theForm.preludelove2.value!="") {
		total = total + (price2*parseInt(theForm.preludelove2.value));
		nb_fontaines += parseInt(theForm.preludelove2.value);
	}
	if (theForm.preludelove3 && theForm.preludelove3.value!="") {
		total = total + (price3*parseInt(theForm.preludelove3.value));
		nb_normaux += parseInt(theForm.preludelove3.value);
	}*/
	if (theForm.preludelove5 && theForm.preludelove5.value!="") {
		total = total + (price5*parseInt(theForm.preludelove5.value));
		nb_normaux += parseInt(theForm.preludelove5.value);
	}
	if (theForm.preludelove6 && theForm.preludelove6.value!="") {
		total = total + (price6*parseInt(theForm.preludelove6.value));
		nb_normaux += parseInt(theForm.preludelove6.value);
	}
	/*if (theForm.preludelove7 && theForm.preludelove7.value!="") {
		total = total + (price7*parseInt(theForm.preludelove7.value));
		nb_normaux += parseInt(theForm.preludelove7.value);
	}*/
	if (theForm.preludelove8 && theForm.preludelove8.value!="") {
		total = total + (price10*parseInt(theForm.preludelove8.value));
		nb_normaux += parseInt(theForm.preludelove8.value);
	}
	if (theForm.love1 && theForm.love1.value!="") {
		total = total + (price1*parseInt(theForm.love1.value));
		nb_normaux += parseInt(theForm.love1.value);
	}/*
	if (theForm.love2 && theForm.love2.value!="") {
		total = total + (price2*parseInt(theForm.love2.value));
		nb_fontaines += parseInt(theForm.love2.value);
	}
	if (theForm.love3 && theForm.love3.value!="") {
		total = total + (price3*parseInt(theForm.love3.value));
		nb_normaux += parseInt(theForm.love3.value);
	}*/
	if (theForm.love4 && theForm.love4.value!="") {
		total = total + (price4*parseInt(theForm.love4.value));
		nb_normaux += parseInt(theForm.love4.value);
	}
	if (theForm.love5 && theForm.love5.value!="") {
		total = total + (price5*parseInt(theForm.love5.value));
		nb_normaux += parseInt(theForm.love5.value);
	}
	if (theForm.love6 && theForm.love6.value!="") {
		total = total + (price6*parseInt(theForm.love6.value));
		nb_normaux += parseInt(theForm.love6.value);
	}
	/*if (theForm.love7 && theForm.love7.value!="") {
		total = total + (price7*parseInt(theForm.love7.value));
		nb_normaux += parseInt(theForm.love7.value);
	}*/
	if (theForm.love8 && theForm.love8.value!="") {
		total = total + (price10*parseInt(theForm.love8.value));
		nb_normaux += parseInt(theForm.love8.value);
	}
	if (theForm.beyond1 && theForm.beyond1.value!="") {
		total = total + (price1*parseInt(theForm.beyond1.value));
		nb_normaux += parseInt(theForm.beyond1.value);
	}/*
	if (theForm.beyond2 && theForm.beyond2.value!="") {
		total = total + (price2*parseInt(theForm.beyond2.value));
		nb_fontaines += parseInt(theForm.beyond2.value);
	}
	if (theForm.beyond3 && theForm.beyond3.value!="") {
		total = total + (price3*parseInt(theForm.beyond3.value));
		nb_normaux += parseInt(theForm.beyond3.value);
	}*/
	if (theForm.beyond4 && theForm.beyond4.value!="") {
		total = total + (price4*parseInt(theForm.beyond4.value));
		nb_normaux += parseInt(theForm.beyond4.value);
	}
	if (theForm.beyond5 && theForm.beyond5.value!="") {
		total = total + (price5*parseInt(theForm.beyond5.value));
		nb_normaux += parseInt(theForm.beyond5.value);
	}
	if (theForm.beyond6 && theForm.beyond6.value!="") {
		total = total + (price6*parseInt(theForm.beyond6.value));
		nb_normaux += parseInt(theForm.beyond6.value);
	}
	/*if (theForm.beyond7 && theForm.beyond7.value!="") {
		total = total + (price7*parseInt(theForm.beyond7.value));
		nb_normaux += parseInt(theForm.beyond7.value);
	}*/
	if (theForm.beyond8 && theForm.beyond8.value!="") {
		total = total + (price10*parseInt(theForm.beyond8.value));
		nb_normaux += parseInt(theForm.beyond8.value);
	}
	if (theForm.tears1 && theForm.tears1.value!="") {
		total = total + (price1*parseInt(theForm.tears1.value));
		nb_normaux += parseInt(theForm.tears1.value);
	}
	if (theForm.tears2 && theForm.tears2.value!="") {
		total = total + (price4*parseInt(theForm.tears2.value));
		nb_normaux += parseInt(theForm.tears2.value);
	}
	if (theForm.tears3 && theForm.tears3.value!="") {
		total = total + (price5*parseInt(theForm.tears3.value));
		nb_normaux += parseInt(theForm.tears3.value);
	}
	if (theForm.tears4 && theForm.tears4.value!="") {
		total = total + (price6*parseInt(theForm.tears4.value));
		nb_normaux += parseInt(theForm.tears4.value);
	}
	if (theForm.tears5 && theForm.tears5.value!="") {
		total = total + (price10*parseInt(theForm.tears5.value));
		nb_normaux += parseInt(theForm.tears5.value);
	}
	if (theForm.liaison1 && theForm.liaison1.value!="") {
		total = total + (price1*parseInt(theForm.liaison1.value));
		nb_normaux += parseInt(theForm.liaison1.value);
	}/*
	if (theForm.liaison2 && theForm.liaison2.value!="") {
		total = total + (price2*parseInt(theForm.liaison2.value));
		nb_fontaines += parseInt(theForm.liaison2.value);
	}
	if (theForm.liaison3 && theForm.liaison3.value!="") {
		total = total + (price3*parseInt(theForm.liaison3.value));
		nb_normaux += parseInt(theForm.liaison3.value);
	}*/
	if (theForm.liaison4 && theForm.liaison4.value!="") {
		total = total + (price4*parseInt(theForm.liaison4.value));
		nb_normaux += parseInt(theForm.liaison4.value);
	}
	if (theForm.liaison5 && theForm.liaison5.value!="") {
		total = total + (price5*parseInt(theForm.liaison5.value));
		nb_normaux += parseInt(theForm.liaison5.value);
	}
	if (theForm.liaison6 && theForm.liaison6.value!="") {
		total = total + (price6*parseInt(theForm.liaison6.value));
		nb_normaux += parseInt(theForm.liaison6.value);
	}
	/*if (theForm.liaison7 && theForm.liaison7.value!="") {
		total = total + (price7*parseInt(theForm.liaison7.value));
		nb_normaux += parseInt(theForm.liaison7.value);
	}*/
	if (theForm.liaison8 && theForm.liaison8.value!="") {
		total = total + (price10*parseInt(theForm.liaison8.value));
		nb_normaux += parseInt(theForm.liaison8.value);
	}
	if (theForm.cruel1 && theForm.cruel1.value!="") {
		total = total + (price1*parseInt(theForm.cruel1.value));
		nb_normaux += parseInt(theForm.cruel1.value);
	}/*
	if (theForm.cruel2 && theForm.cruel2.value!="") {
		total = total + (price2*parseInt(theForm.cruel2.value));
		nb_fontaines += parseInt(theForm.cruel2.value);
	}
	if (theForm.cruel3 && theForm.cruel3.value!="") {
		total = total + (price3*parseInt(theForm.cruel3.value));
		nb_normaux += parseInt(theForm.cruel3.value);
	}*/
	if (theForm.cruel4 && theForm.cruel4.value!="") {
		total = total + (price4*parseInt(theForm.cruel4.value));
		nb_normaux += parseInt(theForm.cruel4.value);
	}
	if (theForm.cruel5 && theForm.cruel5.value!="") {
		total = total + (price5*parseInt(theForm.cruel5.value));
		nb_normaux += parseInt(theForm.cruel5.value);
	}
	if (theForm.cruel6 && theForm.cruel6.value!="") {
		total = total + (price6*parseInt(theForm.cruel6.value));
		nb_normaux += parseInt(theForm.cruel6.value);
	}
	/*if (theForm.cruel7 && theForm.cruel7.value!="") {
		total = total + (price7*parseInt(theForm.cruel7.value));
		nb_normaux += parseInt(theForm.cruel7.value);
	}*/
	if (theForm.cruel8 && theForm.cruel8.value!="") {
		total = total + (price10*parseInt(theForm.cruel8.value));
		nb_normaux += parseInt(theForm.cruel8.value);
	}
	if (theForm.heaven1 && theForm.heaven1.value!="") {
		total = total + (price1*parseInt(theForm.heaven1.value));
		nb_normaux += parseInt(theForm.heaven1.value);
	}/*
	if (theForm.heaven2 && theForm.heaven2.value!="") {
		total = total + (price2*parseInt(theForm.heaven2.value));
		nb_fontaines += parseInt(theForm.heaven2.value);
	}
	if (theForm.heaven3 && theForm.heaven3.value!="") {
		total = total + (price3*parseInt(theForm.heaven3.value));
		nb_normaux += parseInt(theForm.heaven3.value);
	}*/
	if (theForm.heaven4 && theForm.heaven4.value!="") {
		total = total + (price4*parseInt(theForm.heaven4.value));
		nb_normaux += parseInt(theForm.heaven4.value);
	}
	if (theForm.heaven5 && theForm.heaven5.value!="") {
		total = total + (price5*parseInt(theForm.heaven5.value));
		nb_normaux += parseInt(theForm.heaven5.value);
	}
	if (theForm.heaven6 && theForm.heaven6.value!="") {
		total = total + (price6*parseInt(theForm.heaven6.value));
		nb_normaux += parseInt(theForm.heaven6.value);
	}
	/*if (theForm.heaven7 && theForm.heaven7.value!="") {
		total = total + (price7*parseInt(theForm.heaven7.value));
		nb_normaux += parseInt(theForm.heaven7.value);
	}*/
	if (theForm.heaven8 && theForm.heaven8.value!="") {
		total = total + (price10*parseInt(theForm.heaven8.value));
		nb_normaux += parseInt(theForm.heaven8.value);
	}
	if (theForm.straight1 && theForm.straight1.value!="") {
		total = total + (price1*parseInt(theForm.straight1.value));
		nb_normaux += parseInt(theForm.straight1.value);
	}/*
	if (theForm.straight2 && theForm.straight2.value!="") {
		total = total + (price2*parseInt(theForm.straight2.value));
		nb_fontaines += parseInt(theForm.straight2.value);
	}
	if (theForm.straight3 && theForm.straight3.value!="") {
		total = total + (price3*parseInt(theForm.straight3.value));
		nb_normaux += parseInt(theForm.straight3.value);
	}*/
	if (theForm.straight4 && theForm.straight4.value!="") {
		total = total + (price4*parseInt(theForm.straight4.value));
		nb_normaux += parseInt(theForm.straight4.value);
	}
	if (theForm.straight5 && theForm.straight5.value!="") {
		total = total + (price5*parseInt(theForm.straight5.value));
		nb_normaux += parseInt(theForm.straight5.value);
	}
	if (theForm.straight6 && theForm.straight6.value!="") {
		total = total + (price6*parseInt(theForm.straight6.value));
		nb_normaux += parseInt(theForm.straight6.value);
	}
	/*if (theForm.straight7 && theForm.straight7.value!="") {
		total = total + (price7*parseInt(theForm.straight7.value));
		nb_normaux += parseInt(theForm.straight7.value);
	}*/
	if (theForm.straight8 && theForm.straight8.value!="") {
		total = total + (price10*parseInt(theForm.straight8.value));
		nb_normaux += parseInt(theForm.straight8.value);
	}
	if (theForm.back2black1 && theForm.back2black1.value!="") {
		total = total + (price1*parseInt(theForm.back2black1.value));
		nb_normaux += parseInt(theForm.back2black1.value);
	}/*
	if (theForm.back2black2 && theForm.back2black2.value!="") {
		total = total + (price2*parseInt(theForm.back2black2.value));
		nb_fontaines += parseInt(theForm.back2black2.value);
	}
	if (theForm.back2black3 && theForm.back2black3.value!="") {
		total = total + (price3*parseInt(theForm.back2black3.value));
		nb_normaux += parseInt(theForm.back2black3.value);
	}*/
	if (theForm.back2black4 && theForm.back2black4.value!="") {
		total = total + (price4*parseInt(theForm.back2black4.value));
		nb_normaux += parseInt(theForm.back2black4.value);
	}
	if (theForm.back2black5 && theForm.back2black5.value!="") {
		total = total + (price5*parseInt(theForm.back2black5.value));
		nb_normaux += parseInt(theForm.back2black5.value);
	}
	if (theForm.back2black6 && theForm.back2black6.value!="") {
		total = total + (price6*parseInt(theForm.back2black6.value));
		nb_normaux += parseInt(theForm.back2black6.value);
	}
	/*if (theForm.back2black7 && theForm.back2black7.value!="") {
		total = total + (price7*parseInt(theForm.back2black7.value));
		nb_normaux += parseInt(theForm.back2black7.value);
	}*/
	if (theForm.back2black8 && theForm.back2black8.value!="") {
		total = total + (price10*parseInt(theForm.back2black8.value));
		nb_normaux += parseInt(theForm.back2black8.value);
	}

	//
	//[ SWEET REDEMPTION - the end
	//
	if (theForm.sweetredemption1 && theForm.sweetredemption1.value!="") {
		total = total + (price1*parseInt(theForm.sweetredemption1.value));
		nb_normaux += parseInt(theForm.sweetredemption1.value);
	}
	if (theForm.sweetredemption2 && theForm.sweetredemption2.value!="") {
		total = total + (price10*parseInt(theForm.sweetredemption2.value));
		nb_normaux += parseInt(theForm.sweetredemption2.value);
	}
	if (theForm.sweetredemption3 && theForm.sweetredemption3.value!="") {
		total = total + (price5*parseInt(theForm.sweetredemption3.value));
		nb_normaux += parseInt(theForm.sweetredemption3.value);
	}
	if (theForm.sweetredemption4 && theForm.sweetredemption4.value!="") {
		total = total + (price6*parseInt(theForm.sweetredemption4.value));
		nb_normaux += parseInt(theForm.sweetredemption4.value);
	}
	if (theForm.sweetredemption6 && theForm.sweetredemption6.value!="") {
		total = total + (price4*parseInt(theForm.sweetredemption6.value));
		nb_normaux += parseInt(theForm.sweetredemption6.value);
	}
	//
	// SWEET REDEMPTION - the end ]
	//


	//
	//[ KILIAN COLLECTION
	//
	if (theForm.collection2 && theForm.collection2.value!="") {
		total = total + (price94*parseInt(theForm.collection2.value));
		nb_normaux += parseInt(theForm.collection2.value);
	}
	if (theForm.collection3 && theForm.collection3.value!="") {
		total = total + (price158*parseInt(theForm.collection3.value));
		nb_normaux += parseInt(theForm.collection3.value);
	}
	//
	// KILIAN COLLECTION ]
	//


	/*if (theForm.collection1 && theForm.collection1.value!="") {
		total = total + (price5*parseInt(theForm.collection1.value));
		nb_normaux += parseInt(theForm.collection1.value);
	}
	if (theForm.arabian1 && theForm.arabian1.value!="") {
		total = total + (price8*parseInt(theForm.arabian1.value));
		nb_normaux += parseInt(theForm.arabian1.value);
	}
	if (theForm.arabian2 && theForm.arabian2.value!="") {
		total = total + (price8*parseInt(theForm.arabian2.value));
		nb_normaux += parseInt(theForm.arabian2.value);
	}
	if (theForm.arabian3 && theForm.arabian3.value!="") {
		total = total + (price9*parseInt(theForm.arabian3.value));
		nb_normaux += parseInt(theForm.arabian3.value);
	}
	if (theForm.arabian4 && theForm.arabian4.value!="") {
		total = total + (price8*parseInt(theForm.arabian4.value));
		nb_normaux += parseInt(theForm.arabian4.value);
	}
	if (theForm.arabian5 && theForm.arabian5.value!="") {
		total = total + (price9*parseInt(theForm.arabian5.value));
		nb_normaux += parseInt(theForm.arabian5.value);
	}*/
	if (theForm.pureoud1 && theForm.pureoud1.value!="") {
	
		total = total + (price91*parseInt(theForm.pureoud1.value));
		nb_normaux += parseInt(theForm.pureoud1.value);
	}
	if (theForm.pureoud2 && theForm.pureoud2.value!="") {
		total = total + (price94*parseInt(theForm.pureoud2.value));
		nb_normaux += parseInt(theForm.pureoud2.value);
	}
	if (theForm.pureoud3 && theForm.pureoud3.value!="") {
		total = total + (price92*parseInt(theForm.pureoud3.value));
		nb_normaux += parseInt(theForm.pureoud3.value);
	}
	if (theForm.pureoud4 && theForm.pureoud4.value!="") {
		total = total + (price93*parseInt(theForm.pureoud4.value));
		nb_normaux += parseInt(theForm.pureoud4.value);
	}
	if (theForm.roseoud1 && theForm.roseoud1.value!="") {
		total = total + (price91*parseInt(theForm.roseoud1.value));
		nb_normaux += parseInt(theForm.roseoud1.value);
	}
	if (theForm.roseoud2 && theForm.roseoud2.value!="") {
		total = total + (price94*parseInt(theForm.roseoud2.value));
		nb_normaux += parseInt(theForm.roseoud2.value);
	}
	if (theForm.roseoud3 && theForm.roseoud3.value!="") {
		total = total + (price92*parseInt(theForm.roseoud3.value));
		nb_normaux += parseInt(theForm.roseoud3.value);
	}
	if (theForm.roseoud4 && theForm.roseoud4.value!="") {
		total = total + (price93*parseInt(theForm.roseoud4.value));
		nb_normaux += parseInt(theForm.roseoud4.value);
	}
	if (theForm.incenseoud1 && theForm.incenseoud1.value!="") {
		total = total + (price91*parseInt(theForm.incenseoud1.value));
		nb_normaux += parseInt(theForm.incenseoud1.value);
	}
	if (theForm.incenseoud2 && theForm.incenseoud2.value!="") {
		total = total + (price94*parseInt(theForm.incenseoud2.value));
		nb_normaux += parseInt(theForm.incenseoud2.value);
	}
	if (theForm.incenseoud3 && theForm.incenseoud3.value!="") {
		total = total + (price92*parseInt(theForm.incenseoud3.value));
		nb_normaux += parseInt(theForm.incenseoud3.value);
	}
	if (theForm.amberoud1 && theForm.amberoud1.value!="") {
		total = total + (price91*parseInt(theForm.amberoud1.value));
		nb_normaux += parseInt(theForm.amberoud1.value);
	}
	if (theForm.amberoud2 && theForm.amberoud2.value!="") {
		total = total + (price94*parseInt(theForm.amberoud2.value));
		nb_normaux += parseInt(theForm.amberoud2.value);
	}
	if (theForm.amberoud3 && theForm.amberoud3.value!="") {
		total = total + (price92*parseInt(theForm.amberoud3.value));
		nb_normaux += parseInt(theForm.amberoud3.value);
	}

	theForm.total.value=parseInt(total);
	theForm.total2.value=parseInt(total);
	if (pays=="France")
		var fdp = ( Math.ceil( nb_normaux / 2 ) * 10 ) + ( nb_fontaines * 100 );
	else if (pays=="USA")
		var fdp = ( Math.ceil( nb_normaux / 2 ) * 50 ) + ( nb_fontaines * 250 );
	else if (pays=="Canada")
		var fdp = ( Math.ceil( nb_normaux / 2 ) * 50 ) + ( nb_fontaines * 250 );
	else
		var fdp = ( Math.ceil( nb_normaux / 2 ) * 20 ) + ( nb_fontaines * 180 );
	theForm.fdp.value = fdp;
	theForm.fdp2.value = fdp;

	var BasketCount = document.getElementById('BasketCount');
	if(BasketCount) {
		var nb_items = (nb_normaux+nb_fontaines);
		BasketCount.innerHTML = nb_items+' article'+(nb_items>1?'s':'')+'';
	}

	FunctionTotaux();
	
	if (pays=="USA") {
		document.getElementById('result').innerHTML = "For US residents, you can also shop with our US retail  partners: <a href='http://www.luckyscent.com/' target='_blank'>www.luckyscent.com</a>, <a href='http://www.aedes.com/' target='_blank'>www.aedes.com</a> or <a href='http://www.saks.com/' target='_blank'>www.saks.com</a>";
		document.getElementById('result').style.height = "30px";
	}
	else {
		document.getElementById('result').innerHTML = "";
		document.getElementById('result').style.height = "0px";
	}
}

function FunctionFdp() {
	if(1==arguments.length) {
		var sel = arguments[0];
		if(''==sel.options[sel.selectedIndex].value) {
			document.getElementById("IdDisplaySend").style.visibility = "hidden";
		} else {
			document.getElementById("IdDisplaySend").style.visibility = "visible";
		}
	}
	FunctionTotal();
}

var theDoc = document;
function displaySend() {
	var theForm = document.ajout_panier;
	if (theDoc.getElementById("IdDisplaySend").style.visibility=="hidden") {
		theDoc.getElementById("IdDisplaySend").style.visibility="visible";
		swap_m('IdImgSend','checkbox1');
		theForm.cgv.value=1;
	}
	else {
		theDoc.getElementById("IdDisplaySend").style.visibility = "hidden";
		swap_m('IdImgSend','checkbox');
	}
}
