var value =[0,50000,75000,100000,200000,3400000,5600000,11200000];
var bvalue=[0,50001,75001,100001,200001,3400001,5600001];
var operad=[50000,25000,25000,100000,3200000,2200000,5600000];
var conjpc=[0.05,0.1,0.1,0.15,0.2,0.3,0.35,0.4];
var child_c=[0.05,0.1,0.15,0.20,0.20,0.30,0.35,0.40];
var global_point=0;

//modif PG 03/04

var abbatEpoux = 76000;
var abbatLigneDirecte = 46000;
var abbatFrereSoeur = 15000;

// TEST LE FORMULAIRE
function isgood() {
  if (document.layers) MyForm = document.Moon.document.FFF;
  else if (document.all) MyForm = document.FFF;
  bool = false;
  
  if (MyForm.f1.value.length==0 && MyForm.f2.value.length==0 ) {
    window.alert("Veuillez indiquer votre nom.");
    MyForm.f1.focus();
    return false;
  }
  else if ( MyForm.f3.value.length > 0 && MyForm.f4.value.length > 0 )  {
    window.alert("Veuillez renseigner UN SEUL des biens propres.");
    MyForm.f1.focus();
    return false;
  }
  else if ( MyForm.f3.value.length == 0 && MyForm.f4.value.length == 0 ) {
    window.alert("Veuillez renseigner un des biens propres.");
    MyForm.f3.focus();
    return false;
  }
  else if (MyForm.f5.value.length==0) {
    window.alert("Veuillez renseigner vos biens communs.");
    MyForm.f5.focus();
    return false;
  }
  else if ( MyForm.f6.value.length==0) {
   window.alert("Veuillez renseigner le montant de vos dettes.");
    MyForm.f6.focus();
    return false;
  }
  else if ( MyForm.f7.value.length==0) {
    window.alert("Veuillez renseigner le nombre d'enfants");
    MyForm.f7.focus();
    return false;
  }
  else
    return true; 
}

// SUBMIT LE FORMULAIRE
function lets_fun() {
	if (document.layers) Queen = document.Moon.document.FFF;
  	else if (document.all) Queen = document.FFF;
	if ( isgood() )	{
		document.location.href="produit.jsp?aid="+aid+"&subaid="+subaid+"&title=resevaldroit&url="+Queen.f1.value+"@"+Queen.f2.value+"@"+Queen.f3.value+"@"+Queen.f4.value+"@"+Queen.f5.value+"@"+Queen.f6.value+"@"+Queen.f7.value;
	}
}

// RECUPERE LES VALEUR DEPUIS LA CHAINE D URL
function Splt(text) {
	var job_ = text.split('@');
	build (Number(job_[6]));
	if (document.layers) MyForm = document.FullMoon.document;
	else if (document.all) MyForm = document;
	if( job_[2] != '' )
		MyForm.f1.i1.value = Number(job_[2]);
	else
		MyForm.f1.i1.value = Number(job_[3]);
	
	MyForm.f1.i2.value = Number(job_[4])/2;
	MyForm.f1.i3.value = Number(job_[5]);
	_add(Number(job_[6]));
}

function _add(nbc) {
	if (document.layers) MyForm = document.FullMoon.document;
	else if (document.all) MyForm = document;
	if ( MyForm.f1.i1.value == '' || MyForm.f1.i2.value == '' || MyForm.f1.i3.value == '')
		return;
	else
		MyForm.f1.i4.value = Math.round( (Number(MyForm.f1.i1.value) + Number(MyForm.f1.i2.value) - Number(MyForm.f1.i3.value)) * 100 ) /100;
	var resultat;
	resultat = Number(MyForm.f1.i4.value)/2;
	MyForm.f2.i1.value = resultat;
	resultat = Math.round( (resultat/nbc)*100)/100;
	var i=1;
	MyForm.f2.i2.value = resultat;
	for(;i<=nbc;i++) {
		eval("MyForm.f2.ix"+i+".value="+resultat+";");
	}
	calc () ;
}

/*
 *key method
 *aucune factorisation
 */
function key_form1(e) {
	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false
	
	var ieKey=0;
	
	if (ns4) {
		var nKey=e.which; var ieKey=0;
		if (nKey==13) {
			_add();
			next();
			return false;
		}
		else
			return true;
	}	
	else	
	if (ie4) {
		var ieKey=event.keyCode; var nKey=0;
		if (ieKey==13) {
			next ();
			return false;
		}
		else
			return true;
	}
}

function next() {
	global_point +=1;
	if(global_point == 4 ) {
		_add ();
		global_point = 1;
		switch_(global_point);
		return;
	}
	_add ();
	switch_(global_point);
}

function switch_(id) {
	eval("document.f1.i"+id+".focus();")
}

/**********************************************************************************************************************
 *DHTML 
 *Quand tu nous tiens ...
 *
 **********************************************************************************************************************/

var global_goint=1;

function _start () {
	if (document.layers)
		MyForm = document.FullMoon.document;
	else 
	if (document.all)
		MyForm = document;
	
	if ( MyForm.f2.i1.value == '' || MyForm.f2.i2.value == '')
		return;
	else
		calc () ;
}

/*
 *key method
 *aucune factorisation
 */
function key_form2(e) {
	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false
	var ieKey=0;
	
	if (ns4) {
		var nKey=e.which; var ieKey=0;
		if (nKey==13) {
			_add();
			next_2();
			return false;
		}
		else
			return true;
	}	
	else 
	if (ie4) {
		var ieKey=event.keyCode;
		var nKey=0;
		if (ieKey==13) {
			next_2 ();
			return false;
		}
		else
			return true;
	}
}

function next_2() {
	if(global_goint == 2) {
		_start ();
		global_goint = 1;
		switch_2(global_goint);
		return;
	}
	_start ();
	global_goint +=1;
	switch_2(global_goint);
}

function switch_2(id) {
	eval("document.f2.i"+id+".focus();")
}

/* 
* 
*/

function calc () {
	
	
	if (document.layers)
		MyForm = document.FullMoon.document;
	else
	if (document.all)
		MyForm = document;
	
	if ( (Math.round( (Number (MyForm.f2.i1.value) - abbatEpoux)*100)/100)> 0 )	{
		MyForm.f4.i1.value = Math.round( (Number (MyForm.f2.i1.value) - abbatEpoux)*100)/100;
		calc_dc();
	}
	if ( (Math.round( (Number (MyForm.f2.i2.value) - abbatLigneDirecte)*100)/100) > 0 ) {
		MyForm.f5.i1.value = Math.round( (Number (MyForm.f2.i2.value) - abbatLigneDirecte)*100)/100;
		calc_de();
	}
}


function calc_dc() {
	var result;
	var proc_1=0;
	var proc_2=0;
	var _interm=0;
	var i;
	var j=2;
	if (document.layers)
		myForm = document.FullMoon.document;
	else
	if (document.all)
		myForm = document;
	_interm = Number(MyForm.f4.i1.value);
	for ( i = 0; i < value.length ;i++)	{
		if( _interm > value[i])	{
			var operation=0;
			if( (proc_1 + operad[i]) > _interm ) {
				operation = 0;
				operation=Math.round (  ( (_interm - proc_1 )*conjpc[i+1] ) *100 ) /100;
				eval("MyForm.f4.i"+j+".value="+operation+";");
				j++;
			}
			else {
				proc_1 += operad[i];
				operation=Math.round( (operad[i]*conjpc[i])*100) / 100;
				eval("MyForm.f4.i"+j+".value="+operation+";");
				j++;
			}
		}
	}
	for (;j<10;j++)
		eval("MyForm.f4.i"+j+".value=0;");
	for (j=2;j<10;j++) {
		proc_2 += Number(eval("MyForm.f4.i"+j+".value"));
	} 
	MyForm.f4.i10.value=proc_2;
	return;
}

/* 
 */
function calc_de() {
	var result;
	var proc_1=0;
	var proc_2=0;
	var _interm=0;
	var i;
	var j=2;
	if (document.layers)
		myForm = document.FullMoon.document;
	else
	if (document.all)
		myForm = document;
	_interm = Number(MyForm.f5.i1.value);
	for ( i = 0; i < value.length ;i++)	{
		if( _interm > value[i])	{
			var operation=0;
			if( (proc_1 + operad[i]) > _interm ) {
				operation = 0;
				operation=Math.round (  ( (_interm - proc_1 )*child_c[i+1] ) *100 ) /100;
				eval("MyForm.f5.i"+j+".value="+operation+";");
				j++;
			}
			else {
				proc_1 += operad[i];
				operation=Math.round( (operad[i]*child_c[i])*100) / 100;
				eval("MyForm.f5.i"+j+".value="+operation+";");
				j++;
			}
		}
	}
	for (;j<10;j++)
		eval("MyForm.f5.i"+j+".value=0;");
	for (j=2;j<10;j++)	{
		proc_2 += Number(eval("MyForm.f5.i"+j+".value"));
	} 
	MyForm.f5.i10.value=proc_2;
	return;
}
 
/***********************************************************************/
function build (numberchild)
{
	//c poas du code ça .
	start = "<div name=\"FullMoon\" ID=\"FullMoon\" style=\"position: absolute;top:180px;left:170px;  VISIBILITY: visible;\">";
	start += "<table>";
	start += "		<tr>";
				start += "<td>";
					start += "<table border=\"0\">";
						start += "<tr>";
							start += "<td class=\"texteproduit\">";
								start += "<table width=\"402\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\" bgcolor=\"Black\">";
									start += "<tr>";
										start += "<td>";
											start += "<table width=\"400\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"White\">";
												start += "<tr>";
													start += "<td>";
														start += "<form name=\"f1\">";
														start += "<table width=\"400\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\">";
															start += "<tr class=colbleu>";
																start += "<td class=textNormalG>";
																start += "Nature de l'opération";
																start += "</td>";
																start += "<td class=textNormalG>";
																start += "Montant";
																start += "</td>";
															start += "</tr>";
															
															start += "<tr class=colbleu2>";
																start += "<td class=\"textNormal\"";
																 start += "width=\"200\">";
																start += "1.Détermination de la masse successorale";
																start += "<br>";
																start += "[biens propres + (bien communs/2)] - dettes";
																start += "</td>";
																start += "<td class=\"textNormal\">";
																start += "<table width=\"200\">";
																	start += "<tr>";
																		start += "<td class=\"textNormal\">Biens propres</td>";
																		start += "<td  class=\"textNormal\" align=\"right\">&nbsp;&nbsp;";
																		start += "<input class=\"form\" onchange=\"\" name=\"i1\" size=\"6\">&euro;";
																		start += "</td>";
																	start += "</tr>";
																
																	start += "<tr>";
																	start += "	<td class=\"textNormal\">Biens communs/2</td>";
																	start += "	<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
																	start += "	<input class=\"form\" onchange=\"\" name=\"i2\" size=\"6\"> &euro;";
																	start += "	</td>";
																	start += "</tr>";
																	
																	start += "<tr>";
																	start += "	<td class=\"textNormal\">Dettes</td>";
																	start += "	<td class=\"textNormal\" align=\"right\"><strong>&nbsp;-</strong>";
																	start += "	<input class=\"form\" onchange=\"javascript:_add();\" name=\"i3\" size=\"6\"> &euro;";
																	start += "	</td>";
																	start += "</tr>";
																
																	start += "<tr>";
																		start += "<td class=\"textNormal\">Total</td>";
																		start += "<td class=\"textNormal\" align=\"right\"><strong>&nbsp;&nbsp;</strong>";
																	start += "	<input class=\"form\" onchange=\"\" name=\"i4\" size=\"6\"> &euro;";
																	start += "	</td>";
																	start += "</tr>";
																 start += " </table>";
																start += "</form>";
																start += "</td>";
														start += "	</tr>";
														start += "</table>";
													start += "</td>";
												start += "</tr>";
											start += "</table>";
										start += "</td>";
									start += "</tr>";
								start += "</table>";
							start += "</td>";
						start += "</tr>";
	
	document.write ( start );
	/*
	 *
	 */
	 beet = 	"<tr>";
							beet += 	"<td class=\"texteproduit\">";
								beet += 	"<table width=\"402\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\" bgcolor=\"Black\">";
									beet += 	"<tr>";
								beet += 	"		<td>";
									beet += 	"		<table width=\"400\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"White\">";
									beet += 	"			<tr>";
									beet += 	"				<td>";
									beet += 	"					<table width=\"400\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\">";
									beet += 	"						<form name=\"f2\">";
									beet += 	"						<tr class=colbleu2>";
									beet += 	"							<td class=\"textNormal\"";
									beet += 	"							 width=\"200\">";
									beet += 	"							2. Répartition entre les héritiers en présence";
									beet += 	"							</td>";
									beet += 	"							<td class=\"textNormal\">";
									beet += 	"							<table width=\"200\">";
									beet += 	"								<tr>";
									beet += 	"									<td class=\"textNormal\">Conjoint	</td>";
									beet += 	"									<td  class=\"textNormal\" align=\"right\">&nbsp;&nbsp;";
									beet += 	"									<input class=\"form\" onchange=\"\" name=\"i1\" size=\"6\"> &euro;";
									beet += 	"									</td>";
									beet += 	"								</tr>";
									beet += "<input type=\"hidden\" value=\"\" name=\"i2\">";
																
													document.write (beet);
													var i = 1;
													for (;i<= Number(numberchild);i++)
													{
																
																	child="<tr>";
																	child+="	<td class=\"textNormal\">Enfant	</td>";
																		child+="<td class=\"textNormal\" align=\"right\"><strong></strong>";
																	child+="	<input class=\"form\" onchange=\"\" name=\"ix"+i+"\" size=\"6\"> &euro;";
																	child+="	</td>";
																	child+="</tr>";
													document.write (child);
													}
																
																
																end_c="</table>";
																end_c+="</td>";
															end_c+="</tr>";
															end_c+="</form>";
														end_c+="</table>";
													end_c+="</td>";
												end_c+="</tr>";
											end_c+="</table>";
										end_c+="</td>";
									end_c+="</tr>";
								end_c+="</table>";
							end_c+="</td>";
						end_c+="</tr>";
	document.write ( end_c);
	/*
	 */
	the_end = "<tr>";
							the_end += "<td class=\"texteproduit\">";
								the_end += "<table width=\"402\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\" bgcolor=\"Black\">";
									the_end += "<tr>";
									the_end += "	<td>";
									the_end += "		<table width=\"400\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"White\">";
									the_end += "			<tr>";
								    the_end += "					<td>";
									the_end += "					<table width=\"400\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\">";
									the_end += "						<form name=\"f3\">";
									the_end += "						<tr class=colbleu2>";
									the_end += "							<td class=\"textNormal\"";
									the_end += "							 width=\"200\">";
									the_end += "							3. Abattement";
									the_end += "							</td>";
									the_end += "							<td class=\"textNormal\">";
									the_end += "							<table width=\"200\">";
									the_end += "								<tr>";
									the_end += "									<td class=\"textNormal\">Conjoint	</td>";
									the_end += "									<td  class=\"textNormal\" align=\"right\">&nbsp;&nbsp;";
									the_end += "									"+abbatEpoux+" &euro;</td>";
									the_end += "								</tr>";
									the_end += "								<tr>";
									the_end += "									<td class=\"textNormal\">Ligne directe	</td>";
									the_end += "									<td class=\"textNormal\" align=\"right\">";
									the_end += "									"+abbatLigneDirecte+" &euro;</td>";
									the_end += "								</tr>";
									the_end += "								<tr>";
									the_end += "									<td class=\"textNormal\">Enfants	</td>";
									the_end += "									<td class=\"textNormal\" align=\"right\">";
									the_end += "									"+abbatFrereSoeur+" &euro;</td>";
									the_end += "								</tr>";
									the_end += "							</table>";
									the_end += "							</td>";
									the_end += "						</tr>";
									the_end += "						</form>";
									the_end += "					</table>";
									the_end += "				</td>";
									the_end += "			</tr>";
									the_end += "		</table>";
									the_end += "	</td>";
									the_end += "</tr>";
								the_end += "</table>";
							the_end += "</td>";
						the_end += "</tr>";
					
						/* 
						 * 
						 */
						the_end += "<tr>";
						the_end += "	<td class=\"texteproduit\">";
						the_end += "		<table width=\"402\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\" bgcolor=\"Black\">";
						the_end += "			<tr>";
						the_end += "				<td>";
						the_end += "				<table width=\"400\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"White\">";
							the_end += "					<tr>";
							the_end += "						<td>";
							the_end += "							<table width=\"400\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\">";
							the_end += "								<form name=\"f4\">";
							the_end += "								<tr class=colbleu2>";
								the_end += "								<td class=\"textNormal\"";
								the_end += "								 width=\"200\">";
								the_end += "								5. Montant des droits conjoint";
								the_end += "								</td>";
									the_end += "							<td class=\"textNormal\">";
									the_end += "							<table width=\"200\">";
									the_end += "								<tr>";
									the_end += "									<td class=\"textNormal\">2 - 3 =  </td>";
									the_end += "									<td  class=\"textNormal\" align=\"right\">&nbsp;&nbsp;";
									the_end += "									<input class=\"form\" onchange=\"\" name=\"i1\" size=\"6\"> &euro;";
									the_end += "									</td>";
									the_end += "								</tr>";
																
									the_end += "								<tr>";
										the_end += "								<td class=\"textNormal\">x 5% 	</td>";
										the_end += "								<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
										the_end += "								<input class=\"form\" onchange=\"\" name=\"i2\" size=\"6\"> &euro;";
										the_end += "								</td>";
										the_end += "							</tr>";
																	
											the_end += "						<tr>";
											the_end += "							<td class=\"textNormal\">x 10%  	</td>";
											the_end += "							<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
											the_end += "							<input class=\"form\" onchange=\"\" name=\"i3\" size=\"6\"> &euro;";
												the_end += "						</td>";
												the_end += "					</tr>";
																	
													the_end += "				<tr>";
													the_end += "					<td class=\"textNormal\">x 10%  	</td>";
													the_end += "					<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
														the_end += "				<input class=\"form\" onchange=\"\" name=\"i4\" size=\"6\"> &euro;";
														the_end += "				</td>";
														the_end += "			</tr>";
																	
														the_end += "			<tr>";
														the_end += "				<td class=\"textNormal\">x 15%   	</td>";
														the_end += "				<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
															the_end += "			<input class=\"form\" onchange=\"\" name=\"i5\" size=\"6\"> &euro;";
															the_end += "			</td>";
															the_end += "		</tr>";
																	
														the_end += "			<tr>";
														the_end += "				<td class=\"textNormal\">x 20%    	</td>";
															the_end += "			<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
														the_end += "				<input class=\"form\" onchange=\"\" name=\"i6\" size=\"6\"> &euro;";
														the_end += "				</td>";
														the_end += "			</tr>";
																	
														the_end += "			<tr>";
														the_end += "				<td class=\"textNormal\">x 30%   	</td>";
															the_end += "			<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
															the_end += "			<input class=\"form\" onchange=\"\" name=\"i7\" size=\"6\"> &euro;";
															the_end += "			</td>";
														the_end += "			</tr>";
																	
														the_end += "			<tr>";
															the_end += "			<td class=\"textNormal\">x 35%    	</td>";
															the_end += "			<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
															the_end += "			<input class=\"form\" onchange=\"\" name=\"i8\" size=\"6\"> &euro;";
															the_end += "			</td>";
																the_end += "	</tr>";
																	
															the_end += "		<tr>";
																the_end += "		<td class=\"textNormal\">x 40%    	</td>";
																the_end += "		<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
																the_end += "		<input class=\"form\" onchange=\"\" name=\"i9\" size=\"6\"> &euro;";
															the_end += "			</td>";
															the_end += "		</tr>";
																	
															the_end += "		<tr>";
															the_end += "			<td colspan=\"2\">&nbsp;</td>";
															the_end += "		</tr>";
																	
															the_end += "		<tr>";
															the_end += "			<td class=\"textNormal\">Total  	</td>";
															the_end += "			<td class=\"textNormal\" align=\"right\"><strong>&nbsp;&nbsp;</strong>";
															the_end += "			<input class=\"form\" onchange=\"\" name=\"i10\" size=\"6\"> &euro;";
															the_end += "			</td>";
															the_end += "		</tr>";
																	
															the_end += "		</form>";
															the_end += "	</table>";
															the_end += "	</td>";
														the_end += "	</tr>";
													the_end += "	</table>";
												the_end += "	</td>";
											the_end += "	</tr>";
											the_end += "</table>";
									the_end += "	</td>";
								the_end += "	</tr>";
							the_end += "	</table>";
						the_end += "	</td>";
					the_end += "	</tr>";
					
						
					the_end += "	<tr>";
					the_end += "		<td class=\"texteproduit\">";
					the_end += "			<table width=\"402\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\" bgcolor=\"Black\">";
						the_end += "			<tr>";
						the_end += "				<td>";
						the_end += "					<table width=\"400\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"White\">";
						the_end += "						<tr>";
							the_end += "						<td>";
							the_end += "							<table width=\"400\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\">";
							the_end += "								<form name=\"f5\">";
							the_end += "								<tr class=colbleu2>";
								the_end += "								<td class=\"textNormal\"";
								the_end += "								 width=\"200\">";
								the_end += "								5. Montant des droits pour chaque enfant";
								the_end += "								</td>";
								the_end += "								<td class=\"textNormal\">";
								the_end += "								<table width=\"200\">";
									the_end += "								<tr>";
									the_end += "									<td class=\"textNormal\">2 - 3 =  </td>";
									the_end += "									<td  class=\"textNormal\" align=\"right\">&nbsp;&nbsp;";
										the_end += "								<input class=\"form\" onchange=\"\" name=\"i1\" size=\"6\"> &euro;";
										the_end += "								</td>";
										the_end += "							</tr>";
																
										the_end += "							<tr>";
										the_end += "								<td class=\"textNormal\">x 5% 	</td>";
										the_end += "								<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
										the_end += "								<input class=\"form\" onchange=\"\" name=\"i2\" size=\"6\"> &euro;";
										the_end += "								</td>";
										the_end += "							</tr>";
																	
										the_end += "							<tr>";
										the_end += "								<td class=\"textNormal\">x 10%  	</td>";
										the_end += "								<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
										the_end += "								<input class=\"form\" onchange=\"\" name=\"i3\" size=\"6\"> &euro;";
										the_end += "								</td>";
										the_end += "							</tr>";
																	
										the_end += "							<tr>";
										the_end += "								<td class=\"textNormal\">x 15%  	</td>";
										the_end += "								<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
										the_end += "								<input class=\"form\" onchange=\"\" name=\"i4\" size=\"6\"> &euro;";
										the_end += "								</td>";
										the_end += "							</tr>";
																	
										the_end += "							<tr>";
											the_end += "							<td class=\"textNormal\">x 20%   	</td>";
											the_end += "							<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
										the_end += "								<input class=\"form\" onchange=\"\" name=\"i5\" size=\"6\"> &euro;";
										the_end += "								</td>";
											the_end += "						</tr>";
																	
											the_end += "						<tr>";
											the_end += "							<td class=\"textNormal\">x 20%    	</td>";
											the_end += "							<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
											the_end += "							<input class=\"form\" onchange=\"\" name=\"i6\" size=\"6\"> &euro;";
											the_end += "							</td>";
											the_end += "						</tr>";
																	
											the_end += "						<tr>";
												the_end += "						<td class=\"textNormal\">x 30%   	</td>";
												the_end += "						<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
											the_end += "							<input class=\"form\" onchange=\"\" name=\"i7\" size=\"6\"> &euro;";
											the_end += "							</td>";
											the_end += "						</tr>";
																	
												the_end += "					<tr>";
												the_end += "						<td class=\"textNormal\">x 35%    	</td>";
												the_end += "						<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
												the_end += "						<input class=\"form\" onchange=\"\" name=\"i8\" size=\"6\"> &euro;";
												the_end += "						</td>";
												the_end += "					</tr>";
																	
												the_end += "					<tr>";
													the_end += "					<td class=\"textNormal\">x 40%    	</td>";
													the_end += "					<td class=\"textNormal\" align=\"right\"><strong>+</strong>";
													the_end += "					<input class=\"form\" onchange=\"\" name=\"i9\" size=\"6\"> &euro;";
													the_end += "					</td>";
													the_end += "				</tr>";
																	
														the_end += "			<tr>";
													the_end += "					<td colspan=\"2\">&nbsp;</td>";
													the_end += "				</tr>";
																	
													the_end += "				<tr>";
													the_end += "					<td class=\"textNormal\">Total  	</td>";
													the_end += "					<td class=\"textNormal\" align=\"right\"><strong>&nbsp;&nbsp;</strong>";
													the_end += "					<input class=\"form\" onchange=\"\" name=\"i10\" size=\"6\"> &euro;";
													the_end += "					</td>";
													the_end += "				</tr>";
													the_end += "				</form>";
													the_end += "			</table>";
													the_end += "			</td>";
													the_end += "		</tr>";
													the_end += "	</table>";
												the_end += "	</td>";
												the_end += "</tr>";
											the_end += "</table>";
										the_end += "</td>";
									the_end += "</tr>";
								the_end += "</table>";
							the_end += "</td>";
						the_end += "</tr>";
						
					the_end += "</table>";
				the_end += "</td>";
			the_end += "</tr>";
			the_end += "</div>";
	document.write (the_end);
}
