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 (param1=='Full Leather'&¶m3=='Black/Black Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2278!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2278;ROC_VAR_PRICE=ROC_modPrice(2278);}}}; if (param1=='Full Leather'&¶m3=='Black/Grey Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2279!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2279;ROC_VAR_PRICE=ROC_modPrice(2279);}}}; if (param1=='Full Leather'&¶m3=='Black/White Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2280!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2280;ROC_VAR_PRICE=ROC_modPrice(2280);}}}; if (param1=='Full Leather'&¶m3=='Black/Red Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2281!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2281;ROC_VAR_PRICE=ROC_modPrice(2281);}}}; if (param1=='Full Leather'&¶m3=='Black/Green Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2282!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2282;ROC_VAR_PRICE=ROC_modPrice(2282);}}}; if (param1=='Full Leather'&¶m3=='Red/Red Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2283!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2283;ROC_VAR_PRICE=ROC_modPrice(2283);}}}; if (param1=='Full Leather'&¶m3=='Red/Grey Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2284!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2284;ROC_VAR_PRICE=ROC_modPrice(2284);}}}; if (param1=='Full Leather'&¶m3=='Red/White Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2285!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2285;ROC_VAR_PRICE=ROC_modPrice(2285);}}}; if (param1=='Full Leather'&¶m3=='Red/Black Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2286!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2286;ROC_VAR_PRICE=ROC_modPrice(2286);}}}; if (param1=='Full Leather'&¶m3=='Dark Blue/Dark Blue Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2287!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2287;ROC_VAR_PRICE=ROC_modPrice(2287);}}}; if (param1=='Full Leather'&¶m3=='Dark Blue/Grey Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2288!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2288;ROC_VAR_PRICE=ROC_modPrice(2288);}}}; if (param1=='Full Leather'&¶m3=='Dark Blue/White Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2289!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2289;ROC_VAR_PRICE=ROC_modPrice(2289);}}}; if (param1=='Full Leather'&¶m3=='A-Leaf Tan/A-Leaf Tan Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2290!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2290;ROC_VAR_PRICE=ROC_modPrice(2290);}}}; if (param1=='Full Leather'&¶m3=='A-Leaf Tan/Grey Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2291!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2291;ROC_VAR_PRICE=ROC_modPrice(2291);}}}; if (param1=='Full Leather'&¶m3=='A-Leaf Tan/White Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2292!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2292;ROC_VAR_PRICE=ROC_modPrice(2292);}}}; if (param1=='Full Leather'&¶m3=='A-Leaf Tan/Black Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2293!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2293;ROC_VAR_PRICE=ROC_modPrice(2293);}}}; if (param1=='Full Leather'&¶m3=='A-Leaf Tan/Green Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2294!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2294;ROC_VAR_PRICE=ROC_modPrice(2294);}}}; if (param1=='Full Leather'&¶m3=='Biscuit/Biscuit Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2295!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2295;ROC_VAR_PRICE=ROC_modPrice(2295);}}}; if (param1=='Full Leather'&¶m3=='Biscuit/Grey Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2296!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2296;ROC_VAR_PRICE=ROC_modPrice(2296);}}}; if (param1=='Full Leather'&¶m3=='Biscuit/White Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2297!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2297;ROC_VAR_PRICE=ROC_modPrice(2297);}}}; if (param1=='Full Leather'&¶m3=='Biscuit/Black Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2298!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2298;ROC_VAR_PRICE=ROC_modPrice(2298);}}}; if (param1=='Full Leather'&¶m3=='Biscuit/Green Piping') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,960.00';if (modprod2299!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2299;ROC_VAR_PRICE=ROC_modPrice(2299);}}}; 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