function HomecheckForm() { var errors=''; if (document.ukphome.UKPPostcode.value == '') { errors+=' - Please enter your full postcode.\n'; } if (document.ukphome.UKPservice.value == '') { errors+=' - Please select a service to compare.\n'; } if (errors) { alert('The following error(s) occurred:\n'+errors) return false; } return true; } function HomesetService() { if (document.ukphome.gas.checked == true && document.ukphome.electricity.checked == true) { document.ukphome.UKPservice.value = 'dual'; } if (document.ukphome.gas.checked == true && document.ukphome.electricity.checked != true) { document.ukphome.UKPservice.value = 'gas'; } if (document.ukphome.gas.checked != true && document.ukphome.electricity.checked == true) { document.ukphome.UKPservice.value = 'elec'; } } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i