<!--

function InsertCopyright() {
document.write('<p class="footer">&copy; 2011 Portsmouth Plumbing Supplies Ltd</p>');
document.write('<p class="footer"><a href="http://www.solentcis.com/">E-commerce by Solent CIS</a></p>');
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function updatePrice() {
 var selectedPower=getPower();
 var selectedColour=getColour();
 var unitPrice;

 for(i=0; i<aPrices[selectedPower].length; i++) {
	if(aPrices[selectedPower][0][i] == selectedColour) {
		unitPrice=aPrices[selectedPower][1][i];
		break;
	}
 } 

 document.frmPrice.price.value=aPrices[selectedPower][1][i];
}

function getPower() {
 var radioBtnArr = getRadioValue(document.frmPrice.rating);
 return radioBtnArr;
}

function getRadioValue (radioButtonOrGroup) {
  var value = null;
  if (radioButtonOrGroup.length) { // group 
    for (var b = 0; b < radioButtonOrGroup.length; b++)
      if (radioButtonOrGroup[b].checked)
        value = radioButtonOrGroup[b].value;
  }
  else if (radioButtonOrGroup.checked)
    value = radioButtonOrGroup.value;
  return value;
}

function getColour() {
 var radioBtnArr = getRadioValue(document.frmPrice.colour);
 return radioBtnArr;
}



//-->
