var einheit=".00";

var gesamttotal=0;

var einzelpreis=new Array();

einzelpreis[0]=29;

einzelpreis[1]=39;

einzelpreis[2]=45;

einzelpreis[3]=35;

einzelpreis[4]=35;

einzelpreis[5]=25;

einzelpreis[6]=35;

einzelpreis[7]=25;

einzelpreis[8]=35;

einzelpreis[9]=25;

einzelpreis[10]=35;

einzelpreis[11]=25;





var total=new Array();

total[0]=0;

total[1]=0;

total[2]=0;

total[3]=0;

total[4]=0;

total[5]=0;

total[6]=0;

total[7]=0;

total[8]=0;

total[9]=0;

total[10]=0;

total[11]=0;





function solve0 ()



{



if (window.document.shop.Art1_Menge.value > 0)



{



total[0]= window.document.shop.Art1_Menge.value*einzelpreis[0];



window.document.shop.Art1_Preis.value=total[0] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve1 ()



{



if (window.document.shop.Art2_Menge.value > 0)



{



total[1]= window.document.shop.Art2_Menge.value*einzelpreis[1];



window.document.shop.Art2_Preis.value=total[1] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve2 ()



{



if (window.document.shop.Art3_Menge.value > 0)



{



total[2]= window.document.shop.Art3_Menge.value*einzelpreis[2];



window.document.shop.Art3_Preis.value=total[2] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve3 ()



{



if (window.document.shop.Art4_Menge.value > 0)



{



total[3]= window.document.shop.Art4_Menge.value*einzelpreis[3];



window.document.shop.Art4_Preis.value=total[3] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve4 ()



{



if (window.document.shop.Art5_Menge.value > 0)



{



total[4]= window.document.shop.Art5_Menge.value*einzelpreis[4]



window.document.shop.Art5_Preis.value=total[4] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;

}



}







function solve5 ()



{



if (window.document.shop.Art6_Menge.value > 0)



{



total[5]= window.document.shop.Art6_Menge.value*einzelpreis[5]



window.document.shop.Art6_Preis.value=total[5] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve6 ()



{



if (window.document.shop.Art7_Menge.value > 0)



{



total[6]= window.document.shop.Art7_Menge.value*einzelpreis[6]



window.document.shop.Art7_Preis.value=total[6] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve7 ()



{



if (window.document.shop.Art8_Menge.value > 0)



{



total[7]= window.document.shop.Art8_Menge.value*einzelpreis[7]



window.document.shop.Art8_Preis.value=total[7] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve8 ()



{



if (window.document.shop.Art9_Menge.value > 0)



{



total[8]= window.document.shop.Art9_Menge.value*einzelpreis[8]



window.document.shop.Art9_Preis.value=total[8] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve9 ()



{



if (window.document.shop.Art10_Menge.value > 0)



{



total[9]= window.document.shop.Art10_Menge.value*einzelpreis[9]



window.document.shop.Art10_Preis.value=total[9] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve10 ()



{



if (window.document.shop.Art11_Menge.value > 0)



{



total[10]= window.document.shop.Art11_Menge.value*einzelpreis[10]



window.document.shop.Art11_Preis.value=total[10] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}







function solve11 ()



{



if (window.document.shop.Art12_Menge.value > 0)



{



total[11]= window.document.shop.Art12_Menge.value*einzelpreis[11]



window.document.shop.Art12_Preis.value=total[11] + einheit;



gesamttotal=total[0] + total[1] + total[2] + total[3] + total[4] + total[5] + total[6] + total[7] + total[8] + total[9] + total[10] + total[11];



window.document.shop.GESAMTTOTAL.value=gesamttotal + einheit;



}



}
