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=='3-Synchro Box - 65-67'&¶m2=='Biscuit Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5821!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5821;ROC_VAR_PRICE=ROC_modPrice(5821);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Biscuit Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5822!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5822;ROC_VAR_PRICE=ROC_modPrice(5822);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Biscuit Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5823!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5823;ROC_VAR_PRICE=ROC_modPrice(5823);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Brown Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5824!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5824;ROC_VAR_PRICE=ROC_modPrice(5824);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Brown Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5825!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5825;ROC_VAR_PRICE=ROC_modPrice(5825);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Brown Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5826!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5826;ROC_VAR_PRICE=ROC_modPrice(5826);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Grey Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5827!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5827;ROC_VAR_PRICE=ROC_modPrice(5827);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Grey Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5828!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5828;ROC_VAR_PRICE=ROC_modPrice(5828);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Grey Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5829!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5829;ROC_VAR_PRICE=ROC_modPrice(5829);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Biscuit Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5830!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5830;ROC_VAR_PRICE=ROC_modPrice(5830);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Biscuit Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5831!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5831;ROC_VAR_PRICE=ROC_modPrice(5831);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Grey Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5832!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5832;ROC_VAR_PRICE=ROC_modPrice(5832);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Red Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5833!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5833;ROC_VAR_PRICE=ROC_modPrice(5833);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Red Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5834!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5834;ROC_VAR_PRICE=ROC_modPrice(5834);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Black Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5835!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5835;ROC_VAR_PRICE=ROC_modPrice(5835);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Black Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5836!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5836;ROC_VAR_PRICE=ROC_modPrice(5836);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Black Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5837!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5837;ROC_VAR_PRICE=ROC_modPrice(5837);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Red Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5838!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5838;ROC_VAR_PRICE=ROC_modPrice(5838);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Blue Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5839!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5839;ROC_VAR_PRICE=ROC_modPrice(5839);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Blue Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5840!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5840;ROC_VAR_PRICE=ROC_modPrice(5840);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Blue Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5841!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5841;ROC_VAR_PRICE=ROC_modPrice(5841);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Black Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5842!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5842;ROC_VAR_PRICE=ROC_modPrice(5842);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Black Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5843!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5843;ROC_VAR_PRICE=ROC_modPrice(5843);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Black Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5844!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5844;ROC_VAR_PRICE=ROC_modPrice(5844);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Red Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5845!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5845;ROC_VAR_PRICE=ROC_modPrice(5845);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Red Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5846!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5846;ROC_VAR_PRICE=ROC_modPrice(5846);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Red Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5847!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5847;ROC_VAR_PRICE=ROC_modPrice(5847);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Blue Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5848!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5848;ROC_VAR_PRICE=ROC_modPrice(5848);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Blue Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5849!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5849;ROC_VAR_PRICE=ROC_modPrice(5849);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Blue Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5850!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5850;ROC_VAR_PRICE=ROC_modPrice(5850);}}}; if (param1=='3-Synchro Box - 65-67'&¶m2=='Brown Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5851!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5851;ROC_VAR_PRICE=ROC_modPrice(5851);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Brown Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5852!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5852;ROC_VAR_PRICE=ROC_modPrice(5852);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Brown Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5853!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5853;ROC_VAR_PRICE=ROC_modPrice(5853);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Grey Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5854!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5854;ROC_VAR_PRICE=ROC_modPrice(5854);}}}; if (param1=='4-Synchro Box - 70-80'&¶m2=='Grey Carpet'&¶m3=='Feintuft Velour') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,161.00';if (modprod5855!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5855;ROC_VAR_PRICE=ROC_modPrice(5855);}}}; if (param1=='4-Synchro Box - 67-70'&¶m2=='Biscuit Carpet'&¶m3=='DP55 Polypropylene') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='777.00';if (modprod5856!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod5856;ROC_VAR_PRICE=ROC_modPrice(5856);}}}; 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('showpriceMGB-GT-Carpet-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