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 Feintuft Velour Carpet'&¶m2=='Right Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6544!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6544;ROC_VAR_PRICE=ROC_modPrice(6544);}}};
if (param1=='Black Feintuft Velour Carpet'&¶m2=='Left Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6545!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6545;ROC_VAR_PRICE=ROC_modPrice(6545);}}};
if (param1=='Blue Feintuft Velour Carpet'&¶m2=='Right Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6546!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6546;ROC_VAR_PRICE=ROC_modPrice(6546);}}};
if (param1=='Blue Feintuft Velour Carpet'&¶m2=='Left Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6547!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6547;ROC_VAR_PRICE=ROC_modPrice(6547);}}};
if (param1=='Red Feintuft Velour Carpet'&¶m2=='Right Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6548!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6548;ROC_VAR_PRICE=ROC_modPrice(6548);}}};
if (param1=='Red Feintuft Velour Carpet'&¶m2=='Left Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6549!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6549;ROC_VAR_PRICE=ROC_modPrice(6549);}}};
if (param1=='Biscuit Feintuft Velour Carpet'&¶m2=='Right Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6550!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6550;ROC_VAR_PRICE=ROC_modPrice(6550);}}};
if (param1=='Biscuit Feintuft Velour Carpet'&¶m2=='Left Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6551!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6551;ROC_VAR_PRICE=ROC_modPrice(6551);}}};
if (param1=='Grey Feintuft Velour Carpet'&¶m2=='Right Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6552!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6552;ROC_VAR_PRICE=ROC_modPrice(6552);}}};
if (param1=='Grey Feintuft Velour Carpet'&¶m2=='Left Hand Drive') { ROC_VAR_STOCK='Made to order - See despatch times below';ROC_VAR_PRICE='1,302.00';if (modprod6553!=''){var ROC_el = document.getElementById('ROMAN_RDD_MODS');if (ROC_el !== null){ROC_ajaxDisplay = document.getElementById('ROMAN_RDD_MODS');ROC_ajaxDisplay.innerHTML = modprod6553;ROC_VAR_PRICE=ROC_modPrice(6553);}}};
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('showpriceMGA-Carpet-Rdstr-Interior-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