var ROC_VAR_STOCK; function getVarValues(thisPGCode,thisOutputField,param1,param2,param3,param4,param5,thisType) { ROC_VAR_STOCK=''; ROC_VAR_PRICE=''; var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML =''};if (param2=='Biscuit/Green Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2866!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2866;ROC_VAR_PRICE=ROC_modPrice(2866);}}}; if (param2=='Biscuit/Grey Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2868!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2868;ROC_VAR_PRICE=ROC_modPrice(2868);}}}; if (param2=='Red/Grey Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2871!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2871;ROC_VAR_PRICE=ROC_modPrice(2871);}}}; if (param2=='Red/Red Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2872!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2872;ROC_VAR_PRICE=ROC_modPrice(2872);}}}; if (param2=='Black/Black Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2873!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2873;ROC_VAR_PRICE=ROC_modPrice(2873);}}}; if (param2=='Black/Red Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2874!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2874;ROC_VAR_PRICE=ROC_modPrice(2874);}}}; if (param2=='Black/White Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2875!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2875;ROC_VAR_PRICE=ROC_modPrice(2875);}}}; if (param2=='Biscuit/Biscuit Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2876!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2876;ROC_VAR_PRICE=ROC_modPrice(2876);}}}; if (param2=='Black/Green Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2879!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2879;ROC_VAR_PRICE=ROC_modPrice(2879);}}}; if (param2=='Black/Grey Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2880!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2880;ROC_VAR_PRICE=ROC_modPrice(2880);}}}; if (param2=='Blue/White Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2881!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2881;ROC_VAR_PRICE=ROC_modPrice(2881);}}}; if (param2=='Red/Black Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2882!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2882;ROC_VAR_PRICE=ROC_modPrice(2882);}}}; if (param2=='Red/White Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2883!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2883;ROC_VAR_PRICE=ROC_modPrice(2883);}}}; if (param2=='A-Leaf Tan/A-Leaf Tan Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2884!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2884;ROC_VAR_PRICE=ROC_modPrice(2884);}}}; if (param2=='Biscuit/Black Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2885!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2885;ROC_VAR_PRICE=ROC_modPrice(2885);}}}; if (param2=='Biscuit/White Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2886!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2886;ROC_VAR_PRICE=ROC_modPrice(2886);}}}; if (param2=='Blue/Blue Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2887!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2887;ROC_VAR_PRICE=ROC_modPrice(2887);}}}; if (param2=='Blue/Grey Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2888!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2888;ROC_VAR_PRICE=ROC_modPrice(2888);}}}; if (param2=='A-Leaf Tan/Grey Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2889!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2889;ROC_VAR_PRICE=ROC_modPrice(2889);}}}; if (param2=='A-Leaf Tan/White Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2890!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2890;ROC_VAR_PRICE=ROC_modPrice(2890);}}}; if (param2=='A-Leaf Tan/Black Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2891!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2891;ROC_VAR_PRICE=ROC_modPrice(2891);}}}; if (param2=='A-Leaf Tan/Green Piping'&¶m3=='Full Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,030.00';if (modprod2892!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2892;ROC_VAR_PRICE=ROC_modPrice(2892);}}}; if (thisType==1) {return ROC_VAR_STOCK;} else {return ROC_VAR_PRICE;}} function ROC_modPrice(thisPid) { //firstly do the rad var ROC_mod_Adj = 0; var ROC_modurl =''; var ROC_currsym="£"; //if no origprice then this is not relevant if (document.getElementById('ROC_origprice'+thisPid) != null) { var ROC_origprice=parseFloat(document.getElementById('ROC_origprice'+thisPid).value); var ROC_newItemPrice=ROC_origprice; if (document.getElementById('ROC_MOD_OPT_RAD_COUNT'+thisPid) != null) { var ROC_radiocount = document.getElementById('ROC_MOD_OPT_RAD_COUNT'+thisPid).value; for (var ROC_iloop = 1; ROC_iloop<=ROC_radiocount; ROC_iloop++) { if (document.getElementById('ROC_MOD_ID_'+ROC_iloop).checked) { ROC_newItemPrice=ROC_newItemPrice+parseFloat(document.getElementById('ROC_MOD_ID_'+ ROC_iloop + '_PR').value); ROC_modurl=ROC_modurl+'&' + document.getElementById('ROC_MOD_ID_'+ROC_iloop).title + '=' + document.getElementById('ROC_MOD_ID_'+ROC_iloop).value } } } //Now for the dd var ROC_element; var ROC_idtocheck; if (document.getElementById('ROC_MOD_OPT_SEL_COUNT'+thisPid) != null) { var ROC_selcount = document.getElementById('ROC_MOD_OPT_SEL_COUNT'+thisPid).value; for (var ROC_iloop = 2; ROC_iloop<=9; ROC_iloop++) { ROC_idtocheck=''; ROC_element = document.getElementById('dditemname' + ROC_iloop); if (ROC_element != null) { ROC_idtocheck=ROC_element.options[ROC_element.selectedIndex].id + '_PR'; ROC_newItemPrice=ROC_newItemPrice+parseFloat(document.getElementById(ROC_idtocheck).value); ROC_modurl=ROC_modurl+'&itemname' + ROC_iloop + '=' + ROC_element.options[ROC_element.selectedIndex].value; } } } //Output the new price //document.getElementById('ROC_itemprice').innerHTML=ROC_currsym+ROC_newItemPrice.toFixed(2); document.getElementById('showpriceAH-Seats-69-80-OE-FullLeather').innerHTML=ROC_newItemPrice.toFixed(2); //document.getElementById('ROC_modurl').value=ROC_modurl; } return ROC_newItemPrice.toFixed(2); } function ROC_ShowGroupData(myForm,thisPGCode) { //get the pgcode var str = ''; var thispgfield1; var thispgfield2; var thispgfield3; var thispgfield4; var thispgfield5; var elem = myForm.elements; var thisElemValue; var ignorethis=false; for(var i = 0; i