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=='Black/Green Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6111!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6111;ROC_VAR_PRICE=ROC_modPrice(6111);}}}; if (param1=='Red/Red Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6112!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6112;ROC_VAR_PRICE=ROC_modPrice(6112);}}}; if (param1=='Red/Black Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6113!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6113;ROC_VAR_PRICE=ROC_modPrice(6113);}}}; if (param1=='Black/Green Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6114!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6114;ROC_VAR_PRICE=ROC_modPrice(6114);}}}; if (param1=='Red/Red Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6115!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6115;ROC_VAR_PRICE=ROC_modPrice(6115);}}}; if (param1=='Red/Black Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6116!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6116;ROC_VAR_PRICE=ROC_modPrice(6116);}}}; if (param1=='Red/White Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6117!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6117;ROC_VAR_PRICE=ROC_modPrice(6117);}}}; if (param1=='Dk. Blue/Dk. Blue Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6118!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6118;ROC_VAR_PRICE=ROC_modPrice(6118);}}}; if (param1=='Dk. Blue/White Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6119!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6119;ROC_VAR_PRICE=ROC_modPrice(6119);}}}; if (param1=='Biscuit/Green Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6120!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6120;ROC_VAR_PRICE=ROC_modPrice(6120);}}}; if (param1=='Biscuit/Blue Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6121!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6121;ROC_VAR_PRICE=ROC_modPrice(6121);}}}; if (param1=='Dk. Blue/Dk. Blue Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6122!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6122;ROC_VAR_PRICE=ROC_modPrice(6122);}}}; if (param1=='Black/Grey Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6123!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6123;ROC_VAR_PRICE=ROC_modPrice(6123);}}}; if (param1=='Black/White Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6124!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6124;ROC_VAR_PRICE=ROC_modPrice(6124);}}}; if (param1=='Biscuit/Biscuit Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6125!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6125;ROC_VAR_PRICE=ROC_modPrice(6125);}}}; if (param1=='Tan/Green Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6126!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6126;ROC_VAR_PRICE=ROC_modPrice(6126);}}}; if (param1=='Tan/White Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6127!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6127;ROC_VAR_PRICE=ROC_modPrice(6127);}}}; if (param1=='Tan/Tan Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6128!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6128;ROC_VAR_PRICE=ROC_modPrice(6128);}}}; if (param1=='Tan/Black Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6129!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6129;ROC_VAR_PRICE=ROC_modPrice(6129);}}}; if (param1=='Tan/Tan Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6130!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6130;ROC_VAR_PRICE=ROC_modPrice(6130);}}}; if (param1=='Tan/Black Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6131!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6131;ROC_VAR_PRICE=ROC_modPrice(6131);}}}; if (param1=='Black/Grey Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6132!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6132;ROC_VAR_PRICE=ROC_modPrice(6132);}}}; if (param1=='Black/White Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6133!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6133;ROC_VAR_PRICE=ROC_modPrice(6133);}}}; if (param1=='Dk. Blue/White Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6134!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6134;ROC_VAR_PRICE=ROC_modPrice(6134);}}}; if (param1=='Biscuit/Green Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6135!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6135;ROC_VAR_PRICE=ROC_modPrice(6135);}}}; if (param1=='Dk. Blue/Grey Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6136!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6136;ROC_VAR_PRICE=ROC_modPrice(6136);}}}; if (param1=='Biscuit/Blue Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6137!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6137;ROC_VAR_PRICE=ROC_modPrice(6137);}}}; if (param1=='Black/Black Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6138!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6138;ROC_VAR_PRICE=ROC_modPrice(6138);}}}; if (param1=='Black/Black Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6139!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6139;ROC_VAR_PRICE=ROC_modPrice(6139);}}}; if (param1=='Black/Red Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6140!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6140;ROC_VAR_PRICE=ROC_modPrice(6140);}}}; if (param1=='Black/Red Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6141!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6141;ROC_VAR_PRICE=ROC_modPrice(6141);}}}; if (param1=='Dk. Blue/Grey Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6142!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6142;ROC_VAR_PRICE=ROC_modPrice(6142);}}}; if (param1=='Biscuit/Biscuit Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6143!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6143;ROC_VAR_PRICE=ROC_modPrice(6143);}}}; if (param1=='Biscuit/Black Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6144!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6144;ROC_VAR_PRICE=ROC_modPrice(6144);}}}; if (param1=='Biscuit/Black Piping'&¶m2=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='502.00';if (modprod6145!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6145;ROC_VAR_PRICE=ROC_modPrice(6145);}}}; if (param1=='Red/White Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6146!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6146;ROC_VAR_PRICE=ROC_modPrice(6146);}}}; if (param1=='Tan/Green Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6147!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6147;ROC_VAR_PRICE=ROC_modPrice(6147);}}}; if (param1=='Tan/White Piping'&¶m2=='Leather') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='782.00';if (modprod6148!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6148;ROC_VAR_PRICE=ROC_modPrice(6148);}}}; 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-Panels-70-77').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