 function popup(myform, windowname, height, width){
	if (! window.focus)return false;
	window.open('', windowname, 'height='+height+',width='+width+',left=0,top=0, scrollbars=yes');
	myform.target=windowname;
	return true;
}

function CheckThis(form){
var FieldsReq = 0;
var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var Summary = 0;
var subFieldsReq = 0;

for (var i = 0, el; el = form.elements[i]; i++){
		//alert(el.className.indexOf("FieldsOptionChek"));
		if(el.type != 'checkbox'){	
			if (el.className.indexOf("reqFields") != -1){
				if (el.value == '' || el.value == 'null'){
					document.getElementById(el.name+'star').style.color = '#FF6600'; 
						if(FieldsReq==0){
							el.focus();
						}
					FieldsReq ++;
					continue;	
				}else if(el.name=="Email"){
					if(!filter.test(el.value)){
						document.getElementById(el.name+'star').style.color = '#FF6600'; 
						FieldsReq ++;
						continue;	
					}else{
						document.getElementById(el.name+'star').style.color = '#FFFFFF'; 
						continue;	
					}
				}else{
					document.getElementById(el.name+'star').style.color = '#FFFFFF'; 
					continue;	
				}

			}else if (el.className.indexOf("FieldsChek") != -1){
				Summary = parseFloat(Summary) + parseFloat(el.value)
				//Summary = (Summary++) + +el.value//;
				if (Summary > 0){
					document.getElementById('Accommodationstar').style.color = '#FFFFFF'; 
					if(subFieldsReq == 0){
						FieldsReq = 0;
					}
					continue;	
				}else{
					document.getElementById('Accommodationstar').style.color = '#FF6600'; 
					FieldsReq ++;
					continue;	
				}
				
			}else if (el.className.indexOf("FieldsOptionChek") != -1){
					
					if (el.value == 0){
						el.style.color = '#FF6600';
						//el.focus();
					    FieldsReq ++;
						subFieldsReq ++;
						continue;
					}else{
						el.blur();
						el.style.color = '#FFFFFF';
						continue;
					}
				}
				
		}else if (el.className.indexOf("reqCheck") != -1){
			if(el.checked !=1){
				document.getElementById('Agreementstar').style.color = '#FF6600'; 
				//document.getElementById('Agreement').focus(); 
				FieldsReq ++;
				continue;	
			}else {
				document.getElementById('Agreementstar').style.color = '#FFFFFF'; 
				continue;	
			}
		}
}
if(Summary == 0){
	document.getElementById('Part').focus();
}
if (FieldsReq == 0)
	{
		animatedcollapse.show('infoshow');
		return true;
	}
return false;
}

function ChangeDeck(){
	var form = 'form';

	if(document.getElementById('Deck').value==1){
		document.getElementById('UpperDeck').style.display="block";
		document.getElementById('LowerDeck').style.display="none";
		
		document.getElementById('EC3B').value = 0;
		ChooseRoom(1, 3, 'EC3B');
		document.getElementById('FC2B').value = 0;
		ChooseRoom(2, 2, 'FC2B');
		document.getElementById('GC2B').value = 0;
		ChooseRoom(3, 2, 'GC2B');
		document.getElementById('HC2B').value = 0;
		ChooseRoom(4, 2, 'HC2B');
   		document.getElementById('AC3B').value = 0;
		ChooseRoom(5, 3, 'AC3B');
		document.getElementById('BC2B').value = 0;
		ChooseRoom(6, 2, 'BC2B');
		document.getElementById('CC2B').value = 0;
		ChooseRoom(7, 2, 'CC2B');
		document.getElementById('DC2B').value = 0;
		ChooseRoom(8, 2, 'DC2B');

	}else{
		document.getElementById('UpperDeck').style.display="none";
		document.getElementById('LowerDeck').style.display="block";

		document.getElementById('AC3B').value = 0;
		ChooseRoom(5, 3, 'AC3B');
		document.getElementById('BC2B').value = 0;
		ChooseRoom(6, 2, 'BC2B');
		document.getElementById('CC2B').value = 0;
		ChooseRoom(7, 2, 'CC2B');
		document.getElementById('DC2B').value = 0;
		ChooseRoom(8, 2, 'DC2B');
		document.getElementById('EC3B').value = 0;
		ChooseRoom(1, 3, 'EC3B');
		document.getElementById('FC2B').value = 0;
		ChooseRoom(2, 2, 'FC2B');
		document.getElementById('GC2B').value = 0;
		ChooseRoom(3, 2, 'GC2B');
		document.getElementById('HC2B').value = 0;
		ChooseRoom(4, 2, 'HC2B');


	}
}

function ChooseRoom(id, ind, field){
	
	var html  = ''; 
	var Count = document.getElementById(field).value;

	if(ind == 3){
		for(var i=1; i<=Count; i++){
			html  += '<select size="1" name="option_'+i+'_'+id+'_'+field+'" id="option_'+i+'_'+id+'_'+field+'" class="i11 FieldsOptionChek" style="color: #FFFFFF; border: 1px solid #050238; background-color: #48769F; margin-left:110px; margin-top:4px"><option value="0">Please Select</option><option value="3_2_1_0">2 adults, 1 child</option><option value="3_1_2_0">1 adult, 2 child</option><option value="3_3_0_0">3 adults</option><option value="3_1_0_2">1 adult (shared accomodation)</option><option value="3_2_0_1">2 adults (shared accomodation)</option></select><br>';
		}
	}
	if(ind == 2){
		for(var i=1; i<=Count; i++){
			html  += '<select size="1" name="option_'+i+'_'+id+'_'+field+'" id="option_'+i+'_'+id+'_'+field+'" class="i11 FieldsOptionChek" style="color: #FFFFFF; border: 1px solid #050238; background-color: #48769F; margin-left:110px; margin-top:4px" onChange="this.style.color=\'#FFFFFF\'"><option value="0">Please Select</option><option value="2_1_0_1">1 adult (shared accomodation)</option><option value="2_1_0_0">Silgle Person (+70%)</option><option value="2_1_1_0">1 adult, 1 child</option><option value="2_2_0_0">2 adults</option></select><br>';
		}
	}
	var htmlel = document.getElementById("SelectTypeRoom_"+id);
	htmlel.innerHTML = html;
}


function getCabinesValue(){
	var form = 'form';
	var html = '';

	var optionValue=new Array();
	optionValue['3_2_1_0'] = '2 adults, 1 child';
	optionValue['3_1_2_0'] = '1 adult, 2 child';
	optionValue['3_3_0_0'] = '3 adults';
	optionValue['3_1_0_2'] = '1 adult (shared accomodation)';
	optionValue['3_2_0_1'] = '2 adults (shared accomodation)';
	optionValue['2_1_0_1'] = '1 adult (shared accomodation)';
	optionValue['2_1_0_0'] = 'Silgle Person (+70%)';
	optionValue['2_1_1_0'] = '1 adult, 1 child';
	optionValue['2_0_2_0'] = '2 child';
	optionValue['2_2_0_0'] = '2 adults';

	var roomName=new Array(8);
	roomName['AC3B']='A cabin on with 3 beds';
	roomName['BC2B']='B cabin on with 2 beds';
	roomName['CC2B']='C cabin on with 2 beds';	
	roomName['DC2B']='D cabin on with 2 beds';
	roomName['EC3B']='E cabin on with 3 beds';
	roomName['FC2B']='F cabin on with 2 beds';	
	roomName['GC2B']='G cabin on with 2 beds';
	roomName['HC2B']='H cabin on with 2 beds';
	
		for (var i = 0, el; el = document.form.elements[i]; i++){
		if (el.className.indexOf("FieldsChek") != -1 ){
			if (el.value>0){
				html += '<tr><td align="right" class="i11" width="38%"><b>'+roomName[el.name]+' :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+el.value+' cabine</td></tr>';
				elementName = el.name;
			}
		}
		if (el.className.indexOf("FieldsOptionChek") != -1){	
			if (el.value != ''){			
						html += '<tr><td align="right" class="i11" width="38%"></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%"><b>'+optionValue[el.value]+' </b></td></tr>';
			}
		}
	}
	return html;
}

function getCalculatedPrice(){
	var form = 'form';
	var html = '';

	var optionValue=new Array();
	optionValue['3_2_1_0'] = '2 adults, 1 child';
	optionValue['3_1_2_0'] = '1 adult, 2 child';
	optionValue['3_3_0_0'] = '3 adults';
	optionValue['3_1_0_2'] = '1 adult (shared accomodation)';
	optionValue['3_2_0_1'] = '2 adults (shared accomodation)';
	optionValue['2_1_0_1'] = '1 adult (shared accomodation)';
	optionValue['2_1_0_0'] = 'Silgle Person (+70%)';
	optionValue['2_1_1_0'] = '1 adult, 1 child';
	optionValue['2_0_2_0'] = '2 child';
	optionValue['2_2_0_0'] = '2 adults';

	var roomPrice=new Array(8);
	roomPrice['AC3B']=720;
	roomPrice['BC2B']=1348;
	roomPrice['CC2B']=1408;	
	roomPrice['DC2B']=1498;
	roomPrice['EC3B']=1698;
	roomPrice['FC2B']=1798;	
	roomPrice['GC2B']=1898;
	roomPrice['HC2B']=1998;

	var roomName=new Array(8);
	roomName['AC3B']='A cabin on with 3 beds';
	roomName['BC2B']='B cabin on with 2 beds';
	roomName['CC2B']='C cabin on with 2 beds';	
	roomName['DC2B']='D cabin on with 2 beds';
	roomName['EC3B']='E cabin on with 3 beds';
	roomName['FC2B']='F cabin on with 2 beds';	
	roomName['GC2B']='G cabin on with 2 beds';
	roomName['HC2B']='H cabin on with 2 beds';
	
	var CabinNumber = 1;
	var FullCabinPriceChildren = 0;
	var FullCabinPriceAdults = 0;
	var FullCabinePrice = 0;
	var FullCabinePriceDiscount = 0;
	var PriceToPay = 0;
	for (var i = 0, el; el = document.form.elements[i]; i++){
		if (el.className.indexOf("FieldsChek") != -1 ){
			if (el.value>0){
				CabinNumber=1;
				html += '<tr><td align="right" class="i11" width="38%"><b>'+roomName[el.name]+' :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+el.value+' cabine'+((el.value>1)?'s':'')+'</td></tr>';
				elementName = el.name;
				CabinePrice = roomPrice[el.name];
			}
		}
		if (el.className.indexOf("FieldsOptionChek") != -1){	
					
					html += '<tr><td align="right" class="i11" width="38%"></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%"><b>cabin - '+CabinNumber+'</b></td></tr>';
			if (el.value != ''){	
				if(el.value.substring(2,3)==1 &&  el.value.substring(4,5)==0 && el.value.substring(6,7)==0){
					FullCabinPriceAdults = (CabinePrice*1.70);
					FullCabinPriceAdults = (Math.floor(FullCabinPriceAdults*100))/100;
					FullCabinPriceChildren = 0;
				if(document.getElementById("Part").value==1){
						FullCabinPriceAdults = (FullCabinPriceAdults*2);
						FullCabinPriceAdults = (Math.floor(FullCabinPriceAdults*100))/100;
					}

					html += '<tr><td align="right" class="i11" width="38%"></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">Silgle Person (+70%) - '+FullCabinPriceAdults+' EUR</td></tr>';

				}else {
					
					if(el.value.substring(2,3)>0){
						FullCabinPriceAdults = el.value.substring(2,3)*CabinePrice;
						FullCabinPriceAdults = (Math.floor(FullCabinPriceAdults*100))/100;
					}else{
						FullCabinPriceAdults = 0;
					}

					if(el.value.substring(4,5)>0){
						FullCabinPriceChildren = (el.value.substring(4,5)*CabinePrice)/2;
						FullCabinPriceChildren = (Math.floor(FullCabinPriceChildren*100))/100;
					}else{
						FullCabinPriceChildren = 0;
					}
					if(document.getElementById("Part").value==1){
						FullCabinPriceAdults = (FullCabinPriceAdults*2);
						FullCabinPriceAdults = (Math.floor(FullCabinPriceAdults*100))/100;

						FullCabinPriceChildren = (FullCabinPriceChildren*2);
						FullCabinPriceChildren = (Math.floor(FullCabinPriceChildren*100))/100;

					}

						if(el.value.substring(2,3)>0 && el.value.substring(6,7)==0){
							html += '<tr><td align="right" class="i11" width="38%"></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+el.value.substring(2,3)+' adult'+((el.value.substring(2,3)>1)?'s':'')+' - '+FullCabinPriceAdults+' EUR</td></tr>';
						}else if(el.value.substring(2,3)>0 && el.value.substring(6,7)>0){
							html += '<tr><td align="right" class="i11" width="38%"></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+el.value.substring(2,3)+' adult'+((el.value.substring(2,3)>1)?'s':'')+' (shared accomodation) - '+FullCabinPriceAdults+' EUR</td></tr>';
						}
						if(el.value.substring(4,5)>0 && el.value.substring(6,7)==0){
							html += '<tr><td align="right" class="i11" width="38%"></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+el.value.substring(4,5)+' child - '+FullCabinPriceChildren+' EUR</td></tr>';
						}
				}
			}
			FullCabinePrice = (FullCabinePrice++)+ (FullCabinPriceAdults++) + +FullCabinPriceChildren;
			CabinNumber++;
		}
	}

	FullCabinePrice = (Math.floor(FullCabinePrice*100))/100;

	html += '<tr><td align="right" colspan="2" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif"><p align="left" style="margin-top: 0; margin-bottom: 0"><b><i></i></b></p><hr size="1" color="#C1CAD3"></td></tr>';

	html += '<tr><td align="right" class="i11" width="38%"><b>TOTAL :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+FullCabinePrice+' EUR</td></tr>';

	if(document.getElementById("Payment")){
		if(document.getElementById("Payment").value==1){
			FullCabinePriceDiscount = (FullCabinePrice*0.30);
		}else{
			FullCabinePriceDiscount = (FullCabinePrice*0.25);
		}

		FullCabinePriceDiscount = (Math.floor(FullCabinePriceDiscount*100))/100;
		BasePrice = (FullCabinePrice-FullCabinePriceDiscount);
		BasePrice = (Math.floor(BasePrice*100))/100;
		html += ' </tr><tr><td align="right" class="i11" width="38%"><b>Discount for early booking :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+((document.getElementById("Payment").value==1)?'30%':'25%')+' - '+			FullCabinePriceDiscount +' EUR</td></tr><tr><td align="right" class="i11" width="38%" style="padding-top: 6px"><b>Price based on your request :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif; padding-top:6px" width="61%"><b>'+BasePrice+' EUR</b></td></tr>';
	}
	
		if(FullCabinePriceDiscount>0){
			if(document.getElementById("Payment").value==1){
				PriceToPay = FullCabinePrice-FullCabinePriceDiscount;
			}else{
				PriceToPay = ((FullCabinePrice-FullCabinePriceDiscount)/2);
			}
		}else{
			PriceToPay = FullCabinePrice;
		}

		PriceToPay = (Math.floor(PriceToPay*100))/100;
		html += '<tr><td align="right" class="i11" width="38%" valign="top"><b>Price to pay :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%"><b>'+PriceToPay+' EUR</b><br>';
		if(document.getElementById("Payment") && document.getElementById("Payment").value==2){
			html += '<font style="font-size: 10px">50% of the fee on booking and 50% till February 1st</font></td></tr>';
		}else{
			html += '</td></tr>';
		}
		
	return html;
}

function GetData(){

	var currentTime = new Date();
	var month = currentTime.getMonth() + 1;
	var day = currentTime.getDate();

	var Part = '';
	var Deck = '';
	if(document.getElementById("Fax").value==''){
		document.getElementById("Fax").value = 'none';
	}
	if(document.getElementById("Part").value==1){
		Part = 'Part 1 &amp; Part 2';
	}else {
		Part = 'Part '+(document.getElementById("Part").value-1);
	}
	if(document.getElementById("Deck").value==1){
		Deck = 'Upper Deck';
	}else {
		Deck = 'Lower Deck';
	}
	var optionPaymentDetails=new Array();
	optionPaymentDetails[1]='Online by PayPal';
	optionPaymentDetails[2]='By bank transfer';
	optionPaymentDetails[3]='In cash';	
	
	var optionPaymentDiscount=new Array();
	optionPaymentDiscount[1]='Full payment (-30% discont till November 30th)';
	optionPaymentDiscount[2]='Advance payment (25% discont till November 30th)';

var html = '<table border="0" cellpadding="2" style="border-collapse: collapse" width="100%" id="table6"><tr><td align="left" valign="top" rowspan="2" background="main_bg.gif" style="padding-left:40px; padding-right:30px; padding-top:30px; padding-bottom:30px"><p style="margin-right: 0; margin-bottom: 30px"><b>BOOK NOW&nbsp;:</b><p style="margin-right: 0; margin-bottom: 30px">Plase review your Details.</p><div align="left"><table border="0" cellpadding="2" style="border-collapse: collapse" width="100%" id="table6"><tr><td align="right" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" colspan="2"><p align="left" style="margin-top: 0; margin-bottom: 0"><b><i>Personal Information</i></b></p><hr size="1" color="#C1CAD3"></td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>First name :</b></td><td width="61%">'+document.getElementById("FName").value+'</td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Last name :</b></td><td width="61%">'+document.getElementById("LName").value+'</td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Occupation :</b></td><td width="61%">'+document.getElementById("Occupation").value+'</td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Town :</b></td><td width="61%">'+document.getElementById("Town").value+'</td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Country :</b></td><td width="61%">'+document.getElementById("Country").value+'</td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Postal code :</b></td><td width="61%">'+document.getElementById("PostalCode").value+'</td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Address :</b></td><td width="61%">'+document.getElementById("Address").value+'</td></tr><tr><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Telephone :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+document.getElementById("Telephone").value+'</td></tr><tr><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" align="right" class="i11" width="38%"><b>Fax :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+document.getElementById("Fax").value+'</td></tr><tr><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>E-mail :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+document.getElementById("Email").value+'</td></tr><tr><td align="right" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" colspan="2"><p align="left" style="margin-top: 0; margin-bottom: 0"><i><b>Part of the cruise</b></i></p><hr size="1" color="#C1CAD3"></td></tr><tr><td align="right" class="i11" width="38%"><b><font color="#FF6600"> </font>Part of the cruise :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+Part+'</td></tr><tr><td align="right" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" colspan="2"><p align="left" style="margin-top: 0; margin-bottom: 0"><i><b>Accommodation</b></i></p><hr size="1" color="#C1CAD3"></td></tr><tr><td align="right" class="i11" width="38%"><b>Deck of the ship :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+Deck+'</td></tr>';

html += getCabinesValue();

html += '<tr><td align="right" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" colspan="2"><p align="left" style="margin-top: 0; margin-bottom: 0"><b><i>Other</i></b></p><hr size="1" color="#C1CAD3"></td></tr><tr><td class="i11" valign="top" align="right" width="38%"><p style="margin-top: 0; margin-bottom: 0"><b>Have you been to our first festinval in 2007?:</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+document.getElementById("Other01").value+'</td></tr><tr><td class="i11" valign="top" align="right" width="38%"><p style="margin-top: 0; margin-bottom: 0"><b>Are you a musician or artist<br>and if so what type?:</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+document.getElementById("Other02").value+'</td></tr><tr><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" valign="top" align="right" width="38%" class="i11"><p style="margin-top: 0; margin-bottom: 0" class="i11"><b>How did you learn about our musical cruise?:</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+document.getElementById("Other03").value+'</td></tr><tr><td class="i11" valign="top" align="right" width="38%"><p style="margin-top: 0; margin-bottom: 0"><b>Your comments:<br></b>(questions, comments, interests)<br>&nbsp;</td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+document.getElementById("Comment").value+'</td></tr><tr><td align="right" colspan="2" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif"><p align="left" style="margin-top: 0; margin-bottom: 0"><b><i>Paymant</i></b></p><hr size="1" color="#C1CAD3"></td></tr><tr><td align="right" class="i11" width="38%"><b>Way of payment :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+optionPaymentDetails[document.getElementById("WayPayment").value]+'</td></tr>';

if(document.getElementById("Payment")){
html += '<tr><td align="right" class="i11" width="38%"><b>Payment :</b></td><td style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif" width="61%">'+optionPaymentDiscount[document.getElementById("Payment").value]+'</td></tr>';
}

html += getCalculatedPrice();

html += '<tr><td width="38%" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif">&nbsp;</td><td width="61%" style="font-size: 12px; font-family: Verdana,Arial,Helvetica,\'Times New Roman\',sans-serif"><hr size="1" color="#C1CAD3"></td></tr><tr><td width="38%">&nbsp;</td><td width="61%"><input type="button" value="I want to change my details" name="B3" class="i11" onclick="animatedcollapse.show(\'formshow\')" style="width:180px"> <input type="submit" value="Final chekout" name="B19" class="i11" onclick="document.forms[0].submit()"></td></tr>';

html += '</table>';

var htmlelement = document.getElementById("infoshow");
	htmlelement.innerHTML = html;
}


animatedcollapse.addDiv('formshow', 'fade=200,speed=200,group=formall,hide=0');
animatedcollapse.addDiv('infoshow', 'fade=200,speed=200,group=formall,hide=1');
animatedcollapse.init();