//set up calcs for currencies
//post prices are for mail-in form
exrateDollar = 1.52
exrateEuro = 1.11
RVADpoundprice=20.95
ACSSpoundprice=24.95
POWpoundprice=4.99
ABSSpoundprice=9.95
SSMEpoundprice=15.95
RVADeuroprice = (RVADpoundprice+2)*exrateEuro
RVADrowprice = (RVADpoundprice+4)*exrateDollar
ACSSeuroprice = (ACSSpoundprice+2)*exrateEuro
ACSSrowprice = (ACSSpoundprice+4)*exrateDollar
POWeuroprice = (POWpoundprice+2)*exrateEuro
POWrowprice = (POWpoundprice+4)*exrateDollar
ABSSeuroprice = (ABSSpoundprice+2)*exrateEuro
ABSSrowprice = (ABSSpoundprice+4)*exrateDollar
SSMEeuroprice = (SSMEpoundprice+2)*exrateEuro
SSMErowprice = (SSMEpoundprice+4)*exrateDollar

//format price values
prices = new Array (RVADpoundprice, RVADeuroprice, RVADrowprice, ACSSpoundprice, ACSSeuroprice, ACSSrowprice, ABSSpoundprice, ABSSeuroprice, ABSSrowprice, POWpoundprice, POWeuroprice, POWrowprice, SSMEpoundprice, SSMEeuroprice, SSMErowprice)
for (var i = 0; i < 15; i++) {
prices[i] = prices[i].toString()
if (prices[i].indexOf(".") != -1) {
prices[i] += "0"
}
else {
prices[i] += ".00"
}

prices[i] = prices[i].substring(0,prices[i].indexOf('.')+3)
}

RVADpoundprice = prices[0]
RVADeuroprice = prices[1]
RVADrowprice = prices[2]
ACSSpoundprice = prices[3]
ACSSeuroprice = prices[4]
ACSSrowprice = prices[5]
ABSSpoundprice = prices[6]
ABSSeuroprice = prices[7]
ABSSrowprice = prices[8]
POWpoundprice = prices[9]
POWeuroprice = prices[10]
POWrowprice = prices[11]
SSMEpoundprice = prices[12]
SSMEeuroprice = prices[13]
SSMErowprice = prices[14]

//change page if different location is set
function changePage() {
if (document.locationForm.location.value == "Europe") {
window.location="private_order_europe.htm"
}
else {
if (document.locationForm.location.value == "ROW") {
window.location="private_order_row.htm"
}
else {
window.location="private_order.htm"
}
}
}
