function sendFormCancel(fName) { document.getElementById("action").value="Cancel"; document.getElementById(fName).submit(); } function sendForm(fName,action) { document.getElementById("action").value=action; document.getElementById(fName).submit(); } function numerico(p_item,e) { if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.which) code = e.which; var whichCode = code; //var whichCode = (window.Event) ? e.which : e.keyCode; var evtobj=window.event? event : e ; if (whichCode == 8 ||evtobj.ctrlKey|| whichCode == 0 || whichCode == 13 || whichCode == 37 || whichCode == 39 || whichCode == 9) { return true; } if ( (whichCode < 48 && whichCode != 46) || whichCode > 57 ) { return false; } } function numerico(p_item,e) { if (!e) var e = window.event; if (e.keyCode) code = e.keyCode; else if (e.which) code = e.which; var whichCode = code; //var whichCode = (window.Event) ? e.which : e.keyCode; var evtobj=window.event? event : e ; if (whichCode == 8 ||evtobj.ctrlKey|| whichCode == 0 || whichCode == 13 || whichCode == 37 || whichCode == 39 || whichCode == 9) { return true; } if ( (whichCode < 48 && whichCode != 46) || whichCode > 57 ) { return false; } } function showLoading(){ $$('select', 'object', 'embed').each(function(node){ node.style.visibility = 'hidden' }); // affichage du fond grisé var vClientH = parseInt(document.body.clientHeight); var vClientW = parseInt(document.body.clientWidth); var left = parseInt( (vClientW - 150) / 2 ); var top = parseInt( (vClientH - 30) / 2 ); var load = document.getElementById('dLoading'); /*var w_width = parseInt(-load.offsetWidth/2); var w_height = parseInt(-load.offsetHeight/2); load.style.marginLeft=w_width; load.style.marginTop=w_height; load.style.visibility="visible";*/ var scrollOffset = document.body.scrollTop; if( scrollOffset == null ){ scrollOffset = window.pageYOffset; } load.style.top = top + scrollOffset; load.style.left = left; load.style.visibility="visible"; document.getElementById('light').style.display = 'block'; //document.getElementById('dLoading').style.display = 'block'; document.getElementById('light').style.height = parseInt(document.body.scrollHeight); } function hideLoading(){ document.getElementById('light').style.display='none'; document.getElementById('dLoading').style.display = 'none'; $$('select', 'object', 'embed').each(function(node){ node.style.visibility = 'visible' }); }