// Support Script (770)
function Validate(stopOnFailure)
{
	var ErrorMsg = "";
	var i
	var msg
	var tofocus = true;
	var ErrorMsg = "";
	
	// Go through the Validate Array that may or may not exist
	// and call the Validate function for all elements that have one.
	if (document.ValidateArray)
	{
		for (i = 0; i < document.ValidateArray.length; i ++)
		{
			msg = eval( document.ValidateArray[i] + ".Validate()")
			if (msg != "")
			{
				ErrorMsg += "\n\n" + document.ValidateArray[i] + ":  " + msg;
				if (tofocus) 
				{
					eval(document.ValidateArray[i] + ".focus()")
					tofocus = false;
				}
				
				if (stopOnFailure == "1") return ErrorMsg;
			}
  	}
  }
	return ErrorMsg;
}

function Form1_onSubmit() {
errorMsg = Validate("0"); // don't stop on first error

if (errorMsg != "")
    alert("Ce formulaire n'est pas correctement remplit :" + errorMsg);

return (errorMsg == ""); // false prevents form submission
 }
function _Form1_onSubmit() { if (Form1) return Form1.onSubmit(); }
function Text12_onClick() {
window.open('http://www.planetpal.net/palettes/const/planche_superieur.htm','planches','resizable=yes','width=600','heigth=500')
 }
function _Text12_onClick() { if (Text12) return Text12.onClick(); }
function Text13_onClick() {
window.open('http://www.planetpal.net/palettes/const/traverse.htm','traverses','scrollbars =yes','resizable=yes','width=600','heigth=500')
 }
function _Text13_onClick() { if (Text13) return Text13.onClick(); }
function Text15_onClick() {
window.open('http://www.planetpal.net/palettes/const/semelle.htm','Semelles','scrollbars =yes','resizable=yes','width=600','heigth=500')
 }
function _Text15_onClick() { if (Text15) return Text15.onClick(); }
function Text28_onClick() {
window.open('http://www.planetpal.net/palettes/const/planche_inferieur.htm','Inferieur','scrollbars =yes','resizable=yes','width=600','heigth=500')
 }
function _Text28_onClick() { if (Text28) return Text28.onClick(); }
function Text14_onClick() {
window.open('http://www.planetpal.net/palettes/const/palettes_des.htm','Des','scrollbars =yes','resizable=yes','width=600','heigth=500')
 }
function _Text14_onClick() { if (Text14) return Text14.onClick(); }
function FormButton2__onClick() {
Thisel = eval(Recordset4_Typ_PS1_Nom.getText() * Recordset4_Typ_PS1_Lon.getText() * Recordset4_Typ_PS1_Lar.getText() * Recordset4_Typ_PS1_Ep.getText());
Thisel1 = eval((Recordset4_Typ_PS2_Nom.getText() * Recordset4_Typ_PS1_Lon.getText() * Recordset4_Typ_PS2_Lar.getText() * Recordset4_Typ_PS1_Ep.getText()) + Thisel);
Thisel2 = eval((Recordset4_Typ_TR1_Nom.getText() * Recordset4_Typ_TR1_Lon.getText() * Recordset4_Typ_TR1_Lar.getText() * Recordset4_Typ_TR1_Ha.getText()) + Thisel1);
Thisel3 = eval((Recordset4_Typ_TR2_Nom.getText() * Recordset4_Typ_TR1_Lon.getText() * Recordset4_Typ_TR2_Lar.getText() * Recordset4_Typ_TR1_Ha.getText()) + Thisel2);
Thisel4 = eval((Recordset4_Typ_DE1_Nom.getText() * Recordset4_Typ_DE1_Lon.getText() * Recordset4_Typ_DE1_Lar.getText() * Recordset4_Typ_DE1_Ha.getText()) + Thisel3);
Thisel5 = eval((Recordset4_Typ_DE2_Nom.getText() * Recordset4_Typ_DE2_Lon.getText() * Recordset4_Typ_DE2_Lar.getText() * Recordset4_Typ_DE1_Ha.getText()) + Thisel4);
Thisel6 = eval((Recordset4_Typ_SE1_Nom.getText() * Recordset4_Typ_SE1_Lon.getText() * Recordset4_Typ_SE1_Lar.getText() * Recordset4_Typ_SE1_Ha.getText()) + Thisel5);
Thisel7 = eval((Recordset4_Typ_SE2_Nom.getText() * Recordset4_Typ_SE2_Lon.getText() * Recordset4_Typ_SE2_Lar.getText() * Recordset4_Typ_SE1_Ha.getText()) + Thisel6);
Thisel8 = eval((Recordset4_Typ_CHE1_Nom.getText() * Recordset4_Typ_CHE1_Lon.getText() * Recordset4_Typ_CHE1_Lar.getText() * Recordset4_Typ_CHE1_Ha.getText()) + Thisel7);
Thisel9 = eval((Recordset4_Typ_CHE2_Nom.getText() * Recordset4_Typ_CHE1_Lon.getText() * Recordset4_Typ_CHE2_Lar.getText() * Recordset4_Typ_CHE1_Ha.getText()) + Thisel8);
Thisel10 = eval((Recordset4_Typ_PD1_Nom.getText() * Recordset4_Typ_PD1_Lon.getText() * Recordset4_Typ_PD1_Lar.getText() * Recordset4_Typ_PD1_Ep.getText()) + Thisel9);
Thisel11 = eval((Recordset4_Typ_PD2_Nom.getText() * Recordset4_Typ_PD1_Lon.getText() * Recordset4_Typ_PD2_Lar.getText() * Recordset4_Typ_PD1_Ep.getText()) + Thisel10);
Thisel12 = eval(Thisel11 / 1000000);
Thisel13 = Math.round (Thisel12*100)/100;
cube.setText(Thisel13);
 }
function _FormButton2__onClick() { if (FormButton2) return FormButton2.onClick(); }
function Image1_onClick() {
history.go(-1)
 }
function _Image1_onClick() { if (Image1) return Image1.onClick(); }


