// JavaScript Document


function check() {
//centimeter empthy?
if (document.priceform.lengthb.value==""){
document.priceform.lengthb.value="0"}
//type
//centimeter width empthy?
if (document.priceform.widthb.value==""){
document.priceform.widthb.value="0"}
//type
   if (document.priceform.type[0].checked){
   var type_price=1725}
   else
   if (document.priceform.type[1].checked){
   var type_price=1975}
   else
    if (document.priceform.type[2].checked){
   var type_price=2175}
   else
    if (document.priceform.type[3].checked){
   var type_price=2100}
      else
    if (document.priceform.type[4].checked){
   var type_price=2050}
         else
    if (document.priceform.type[5].checked){
   var type_price=2325}

//colors
if (document.priceform.color[0].checked){
   var color_price=0}
   else
   if (document.priceform.color[1].checked){
   var color_price=35}
   else
   if (document.priceform.color[2].checked){
   var color_price=40}

	if (document.priceform.fluor.checked==true){
var color_price=color_price + 30}

	if (document.priceform.bottom.checked==true){
var color_price=color_price + 60}

	if (document.priceform.plain.checked==true){
var color_price=color_price + 30}
	
//centimeter
var centi = eval(document.priceform.lengthb.value);
var lengthb_price = centi * 8;

//centimeter width
var centi2 = eval(document.priceform.widthb.value);
var widthb_price = centi2 * 20

//box  
if (document.priceform.box.checked==true){
var box_price=40}
else
var box_price=0;

//trifin
if (document.priceform.trifin.checked==true){
var trifin_price=40}
else
var trifin_price=0;

//heel
if (document.priceform.heel.checked==true){
var heel_price=65}
else
var heel_price=0;

if (document.priceform.flex1.checked==true){
var flex1_price=225}
else
var flex1_price=0;

if (document.priceform.flex2.checked==true){
var flex2_price=250}
else
var flex2_price=0;

//fins
var discount=0.65;
if (document.priceform.fin1.checked==true){
var fin1_price=discount*64}
else
var fin1_price=0;

if (document.priceform.fin2.checked==true){
var fin2_price=discount*66}
else
var fin2_price=0;

if (document.priceform.fin3.checked==true){
var fin3_price=discount*77}
else
var fin3_price=0;

if (document.priceform.fin4.checked==true){
var fin4_price=discount*86}
else
var fin4_price=0;

if (document.priceform.fin5.checked==true){
var fin5_price=discount*93}
else
var fin5_price=0;

if (document.priceform.fin6.checked==true){
var fin6_price=discount*97}
else
var fin6_price=0;

if (document.priceform.fin7.checked==true){
var fin7_price=discount*101}
else
var fin7_price=0;

if (document.priceform.fin8.checked==true){
var fin8_price=discount*81}
else
var fin8_price=0;

if (document.priceform.fin9.checked==true){
var fin9_price=discount*91}
else
var fin9_price=0;

if (document.priceform.fin10.checked==true){
var fin10_price=discount*98}
else
var fin10_price=0;

if (document.priceform.fin11.checked==true){
var fin11_price=discount*105}
else
var fin11_price=0;

if (document.priceform.fin12.checked==true){
var fin12_price=discount*113}
else
var fin12_price=0;

//bereken
	var totprice = type_price + color_price + lengthb_price + widthb_price + box_price + trifin_price+heel_price+flex1_price+flex1_price+fin1_price+fin2_price+fin3_price+fin4_price+fin5_price+fin6_price+fin7_price+fin8_price+fin9_price+fin10_price+fin11_price+fin12_price;
	var totprice = Math.round(totprice);
	var total =totprice + ",- Euro";
	document.priceform.price.value=total;
	window.location.href= "#cal";
}     


