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=='Black/Black Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='In stock';ROC_VAR_PRICE='387.00';if (modprod2739!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2739;ROC_VAR_PRICE=ROC_modPrice(2739);}}};
if (param2=='Black/Red Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2740!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2740;ROC_VAR_PRICE=ROC_modPrice(2740);}}};
if (param2=='Black/Grey Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2741!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2741;ROC_VAR_PRICE=ROC_modPrice(2741);}}};
if (param2=='Black/White Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2742!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2742;ROC_VAR_PRICE=ROC_modPrice(2742);}}};
if (param2=='Black/Green Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2743!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2743;ROC_VAR_PRICE=ROC_modPrice(2743);}}};
if (param2=='Red/Red Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2744!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2744;ROC_VAR_PRICE=ROC_modPrice(2744);}}};
if (param2=='Red/Grey Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2745!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2745;ROC_VAR_PRICE=ROC_modPrice(2745);}}};
if (param2=='Red/White Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2746!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2746;ROC_VAR_PRICE=ROC_modPrice(2746);}}};
if (param2=='Red/Black Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2747!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2747;ROC_VAR_PRICE=ROC_modPrice(2747);}}};
if (param2=='Blue/Blue Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2748!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2748;ROC_VAR_PRICE=ROC_modPrice(2748);}}};
if (param2=='Blue/Grey Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2749!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2749;ROC_VAR_PRICE=ROC_modPrice(2749);}}};
if (param2=='Blue/White Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2750!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2750;ROC_VAR_PRICE=ROC_modPrice(2750);}}};
if (param2=='A-Leaf Tan/A-Leaf Tan Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2751!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2751;ROC_VAR_PRICE=ROC_modPrice(2751);}}};
if (param2=='A-Leaf Tan/Grey Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2752!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2752;ROC_VAR_PRICE=ROC_modPrice(2752);}}};
if (param2=='A-Leaf Tan/White Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2753!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2753;ROC_VAR_PRICE=ROC_modPrice(2753);}}};
if (param2=='A-Leaf Tan/Black Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2754!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2754;ROC_VAR_PRICE=ROC_modPrice(2754);}}};
if (param2=='A-Leaf Tan/Green Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2755!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2755;ROC_VAR_PRICE=ROC_modPrice(2755);}}};
if (param2=='Biscuit/Biscuit Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2756!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2756;ROC_VAR_PRICE=ROC_modPrice(2756);}}};
if (param2=='Biscuit/Grey Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2757!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2757;ROC_VAR_PRICE=ROC_modPrice(2757);}}};
if (param2=='Biscuit/White Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2758!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2758;ROC_VAR_PRICE=ROC_modPrice(2758);}}};
if (param2=='Biscuit/Black Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2759!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2759;ROC_VAR_PRICE=ROC_modPrice(2759);}}};
if (param2=='Biscuit/Green Piping'&¶m3=='Vinyl') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='387.00';if (modprod2760!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod2760;ROC_VAR_PRICE=ROC_modPrice(2760);}}};
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-Vinyl').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