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=='Biscuit'&¶m2=='DP55 Polypropylene'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3480!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3480;ROC_VAR_PRICE=ROC_modPrice(3480);}}}; if (param1=='Grey'&¶m2=='DP55 Polypropylene'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3481!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3481;ROC_VAR_PRICE=ROC_modPrice(3481);}}}; if (param1=='Red'&¶m2=='DP55 Polypropylene'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3482!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3482;ROC_VAR_PRICE=ROC_modPrice(3482);}}}; if (param1=='Brown'&¶m2=='DP55 Polypropylene'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3483!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3483;ROC_VAR_PRICE=ROC_modPrice(3483);}}}; if (param1=='Blue'&¶m2=='DP55 Polypropylene'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3484!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3484;ROC_VAR_PRICE=ROC_modPrice(3484);}}}; if (param1=='Black'&¶m2=='DP55 Polypropylene'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3485!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3485;ROC_VAR_PRICE=ROC_modPrice(3485);}}}; if (param1=='Grey'&¶m2=='DP55 Polypropylene'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3486!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3486;ROC_VAR_PRICE=ROC_modPrice(3486);}}}; if (param1=='Brown'&¶m2=='DP55 Polypropylene'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3487!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3487;ROC_VAR_PRICE=ROC_modPrice(3487);}}}; if (param1=='Blue'&¶m2=='DP55 Polypropylene'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3488!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3488;ROC_VAR_PRICE=ROC_modPrice(3488);}}}; if (param1=='Red'&¶m2=='DP55 Polypropylene'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3489!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3489;ROC_VAR_PRICE=ROC_modPrice(3489);}}}; if (param1=='Biscuit'&¶m2=='DP55 Polypropylene'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3490!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3490;ROC_VAR_PRICE=ROC_modPrice(3490);}}}; if (param1=='Black'&¶m2=='DP55 Polypropylene'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='181.00';if (modprod3491!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3491;ROC_VAR_PRICE=ROC_modPrice(3491);}}}; if (param1=='Biscuit'&¶m2=='Feintuft Velour'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3492!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3492;ROC_VAR_PRICE=ROC_modPrice(3492);}}}; if (param1=='Black'&¶m2=='Feintuft Velour'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3493!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3493;ROC_VAR_PRICE=ROC_modPrice(3493);}}}; if (param1=='Blue'&¶m2=='Feintuft Velour'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3494!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3494;ROC_VAR_PRICE=ROC_modPrice(3494);}}}; if (param1=='Brown'&¶m2=='Feintuft Velour'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3495!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3495;ROC_VAR_PRICE=ROC_modPrice(3495);}}}; if (param1=='Grey'&¶m2=='Feintuft Velour'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3496!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3496;ROC_VAR_PRICE=ROC_modPrice(3496);}}}; if (param1=='Red'&¶m2=='Feintuft Velour'&¶m3=='Carburettor Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3497!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3497;ROC_VAR_PRICE=ROC_modPrice(3497);}}}; if (param1=='Biscuit'&¶m2=='Feintuft Velour'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3498!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3498;ROC_VAR_PRICE=ROC_modPrice(3498);}}}; if (param1=='Black'&¶m2=='Feintuft Velour'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3499!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3499;ROC_VAR_PRICE=ROC_modPrice(3499);}}}; if (param1=='Blue'&¶m2=='Feintuft Velour'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3500!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3500;ROC_VAR_PRICE=ROC_modPrice(3500);}}}; if (param1=='Brown'&¶m2=='Feintuft Velour'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3501!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3501;ROC_VAR_PRICE=ROC_modPrice(3501);}}}; if (param1=='Grey'&¶m2=='Feintuft Velour'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3502!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3502;ROC_VAR_PRICE=ROC_modPrice(3502);}}}; if (param1=='Red'&¶m2=='Feintuft Velour'&¶m3=='Petrol-Injection Engine') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='230.00';if (modprod3503!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod3503;ROC_VAR_PRICE=ROC_modPrice(3503);}}}; 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('showpriceTR-Carpet-Boot-61-76-OE').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