function chrono(annee, mois, jour, heure, minute)
{	
	var date_fin	= new Date(annee, mois-1, jour, heure, minute);
	var date_jour	= new Date();
	var tps 		= (date_fin.getTime() - date_jour.getTime()) / 1000;
	var j 			= Math.floor(tps/3600/24);     	
	tps				= tps % (3600*24);
	var h			= Math.floor(tps / 3600);		
	tps				= tps % 3600;
	var m			= Math.floor(tps/60);		
	tps				= tps % 60;
	var s			= Math.floor(tps);
	
	if (j != -1)
	{
		var txt = "Flash: " + j + "j " + h + "h " + m + "m " + s + "s";

	}
	else
	{
		var txt = "Flash: 0j 0h 0m 0s";
		document.location.reload();
	}
	
	return txt;
}

function trap() {
if(document.images)
for(i=0;i<document.images.length;i++)
document.images[i].onmousedown = right;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
 // window.open(theURL,winName,features);
 features = "scrollbars=yes";
  var top=(screen.height-500)/2;
  var left=(screen.width-750)/2;
  window.open(theURL,winName,"top="+top+",left="+left+",width="+750+",height="+500+","+features); 
}

function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Tous droits réservé");
return false;
}
return true;
}
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
function keypressed() {
alert("Tous droits réservé");
}
document.onmousedown=right;

function JumpToIt(list) {
    var newPage = list.options[list.selectedIndex].value
    if (newPage != "None") {
        location=newPage
    }
}

function ouvre_fenetres(taille1,taille2,nom,description) 
{
    photo = window.open('','photo','width='+taille1+', height='+taille2+''); 
    photo.document.write('<head><title>'+description+'</title></head><body><img src='+nom+'></body>'); 
}


function voir_commande() { 
 location.href='commande.php';
} 



function popuprnp(){
 var win2 =
window.open("http://www.receiveandpay.com/wallet/customer/popup3x.php?logo=6972"
,'popup','height=945,width=616,status=yes,scrollbars=yes,menubar=no,resizable=yes');
}

function no_accent(my_string) {
var new_string = String (my_string);
new_string = new_string.replace(RegExp("(\u0040|&#x40|&#064;|@|&commat;|\u0061|&#x61|&#097;|\u00C0|&#xC0|&#192;|À|&Agrave;|\u00C1|&#xC1|&#193;|Á|&Aacute;|\u00C2|&#xC2|&#194;|Â|&Acirc;|\u00C3|&#xC3|&#195;|Ã|&Atilde;|\u00C4|&#xC4|&#196;|Ä|&Auml;|\u00C5|&#xC5|&#197;|Å|&Aring;|\u00E0|&#xE0|&#224;|à|&agrave;|\u00E1|&#xE1|&#225;|á|&aacute;|\u00E2|&#xE2|&#226;|â|&acirc;|\u00E3|&#xE3|&#227;|ã|&atilde;|\u00E4|&#xE4|&#228;|ä|&auml;|\u00E5|&#xE5|&#229;|å|&aring;)","gi"),'a');
new_string = new_string.replace(RegExp("(\u00C7|&#xC7|&#199;|Ç|&Ccedil;|\u00E7|&#xE7|&#231;|ç|&ccedil;)","gi"),'c');
new_string = new_string.replace(RegExp("(\u00D0|&#xD0|&#208;|Ð|&ETH;)","gi"),'d');
new_string = new_string.replace(RegExp("(\u0065|&#x65;|&#101;|\u00C8|&#xC8;|&#200;|È|&Egrave;|\u00C9|&#xC9;|&#201;|É|&Eacute;|\u00CA|&#xCA;|&#202;|Ê|&Ecirc;|\u00CB|&#xCB;|&#203;|Ë|&Euml;|\u00E8|&#xE8;|&#232;|è|&egrave;|\u00E9|&#xE9;|&#233;|é|&eacute;|\u00EA|&#xEA;|&#234;|ê|&ecirc;|\u00EB|&#xEB;|&#235;|ë|&euml;)","gi"),'e');
new_string = new_string.replace(RegExp("(\u0069|&#x69|&#105;|\u00CC|&#xCC|&#204;|Ì|&Igrave;|\u00CD|&#xCD|&#205;|Í|&Iacute;|\u00CE|&#xCE|&#206;|Î|&Icirc;|\u00CF|&#xCF|&#207;|Ï|&Iuml;|\u00EC|&#xEC|&#236;|ì|&igrave;|\u00ED|&#xED|&#237;|í|&iacute;|\u00EE|&#xEE|&#238;|î|&icirc;|\u00EF|&#xEF|&#239;|ï|&iuml;)","gi"),'i');
new_string = new_string.replace(RegExp("(\u006E|&#x6E|&#110;|\u00D1|&#xD1|&#209;|Ñ|&Ntilde;|\u00F1|&#xF1|&#241;|ñ|&ntilde;)","gi"),'n');
new_string = new_string.replace(RegExp("(\u006F|&#x6F|&#111;|\u00D2|&#xD2|&#210;|Ò|&Ograve;|\u00D3|&#xD3|&#211;|Ó|&Oacute;|\u00D4|&#xD4|&#212;|Ô|&Ocirc;|\u00D5|&#xD5|&#213;|Õ|&Otilde;|\u00D6|&#xD6|&#214;|Ö|&Ouml;|\u00F2|&#xF2|&#242;|ò|&ograve;|\u00F3|&#xF3|&#243;|ó|&oacute;|\u00F4|&#xF4|&#244;|ô|&ocirc;|\u00F5|&#xF5|&#245;|õ|&otilde;|\u00F6|&#xF6|&#246;|ö|&ouml;|\u00F8|&#xF8|&#248;|ø|&oslash;)","gi"),'o');
new_string = new_string.replace(RegExp("(\u0075|&#x75|&#117;|\u00D9|&#xD9|&#217;|Ù|&Ugrave;|\u00DA|&#xDA|&#218;|Ú|&Uacute;|\u00DB|&#xDB|&#219;|Û|&Ucirc;|\u00DC|&#xDC|&#220;|Ü|&Uuml;|\u00F9|&#xF9|&#249;|ù|&ugrave;|\u00FA|&#xFA|&#250;|ú|&uacute;|\u00FB|&#xFB|&#251;|û|&ucirc;|\u00FC|&#xFC|&#252;|ü|&uuml;)","gi"),'u');
new_string = new_string.replace(RegExp("(\u0079|&#x79|&#121;|\u00DD|&#xDD|&#221;|Ý|&Yacute;|\u00FD|&#xFD|&#253;|ý|&yacute;|\u00FF|&#xFF|&#255;|ÿ|&yuml;)","gi"),'y');
new_string = new_string.replace(RegExp("(\u00C6|&#xC6|&#198;|Æ|&AElig;|\u00E6|&#xE6|&#230;|æ|&aelig;)","gi"),'ae');
new_string = new_string.replace(RegExp("(\u008C|&#x8C|&#140;|Œ|&OElig;|\u009C|&#x9C|&#156;|œ|&oelig;)","gi"),'oe');
return new_string;
} 


function alert_panier(alert_panier){
    alert(alert_panier);
    };
	
	

function rep()
{
	var ttt_z = document.getElementById("abc__ff_david_spare_parts_PARTNO").value;

   ttt_z = ttt_z.replace(/-/g,"");

	document.getElementById("abc__ff_david_spare_parts_PARTNO").value = ttt_z;
}


<!--[if lt IE 7]>
    // Fonction destinée à remplacer le "LI:hover" pour IE 6
        sfHover = function() {
             var sfEls = document.getElementsByTagName("li");
             for (var i=0; i<sfEls.length; i++) {
              sfEls[i].onmouseover = function() {
                this.className = this.className.replace(new RegExp(" sfhover"), "");
                this.className += " sfhover";
              }
              sfEls[i].onmouseout = function() {
                this.className = this.className.replace(new RegExp(" sfhover"), "");
              }
             }
        }
        if (window.attachEvent) window.attachEvent("onload", sfHover);
<!--[endif]-->