function iFrameTraitment(cDivName,cPath){
	document.formF.action=cPath;
	document.formF.method="POST"; 
	document.formF.target="RemoteScripting" ;
	document.formF.submit();
}

function Num(){
	var Touche = window.event.keyCode;
	if (! ((Touche > 47) && (Touche < 58)))
		window.event.keyCode = 0;
}
function Num2(){
	var Touche = window.event.keyCode;
	if (! ( ((Touche > 41) && (Touche < 58)) || (Touche==32) ) )
		window.event.keyCode = 0;
}

function Num_Dot(){
	var Touche = window.event.keyCode;
	if (! ( (Touche > 45) && (Touche < 58)  ) )  
		window.event.keyCode = 0;
}

function Num_Slash(){
	var Touche = window.event.keyCode;
	if (! ( (Touche >= 45) && (Touche < 58)  ) )  
		window.event.keyCode = 0;
}


function setPointer(theRow, thePointerColor) {
	if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
		return false;
	}
	var row_cells_cnt = theRow.cells.length;
	
	for (var c = 0; c < row_cells_cnt; c++) {
		theRow.cells[c].bgColor = thePointerColor;
	}
	return true;
}


function prixTTC(valeur_HT,TVA) {
	if(valeur_HT!='') {
		return (Math.round((eval(valeur_HT) + eval((valeur_HT*TVA)/100))*100)/100);
	}
	else {
		return '';
	}
}


function valDateStr(cDate){

	if (cDate == "//"){cDate = "";}
	lok = true

	if (cDate.length > 0){
		if (cDate.length < 10){
			lok = false
		}else{
			jour = cDate.substr(0,2)
			mois = cDate.substr(3,2)
			an = cDate.substr(6,4);

			if((an > 99) && (an < 1900)){
				lok = false
			}else{
				if(mois > 12){
					lok = false
				}else{ 
					if(jour > 31){
						lok = false
					}else{
						if (((mois==04) || (mois==06) || (mois==09) || (mois==11)) && (jour > 30)){
							lok = false;
						}else{
						
							if(mois == 02){
								nBi = (an % 4);

								if (nBi == 0){
									jmax = 29;
								}else{
									jmax = 28;
								}

								if(jour > jmax) {
									lok = false
								}
							}
						}
					}
				}	 
			}
		}
	}
	return lok 
}