function check(){
					var error = ""
					
					/*if (document.checkout.firstname.value==""){
						error = error + "Please enter your First Name\n"						
						}*/	
						
for (i=0;i<document.conveyancing_quote.Transaction_Type.length;i++) {
	if (document.conveyancing_quote.Transaction_Type[i].checked) {
		transactionTypeStr = document.conveyancing_quote.Transaction_Type[i].value;
	}
}

					if (transactionTypeStr=="Remortgage"){
						
						if(document.conveyancing_quote.Remortgage_Address.value==""){												
							error = error + "Please enter the address of the property you wish to remortgage\n"						
						}
						if(document.conveyancing_quote.Remortgage_Postcode.value==""){												
							error = error + "Please enter the postcode of the property you wish to remortgage\n"						
						}
						if(document.conveyancing_quote.Remortgage_Amount.value==""){												
							error = error + "Please enter the remortgage amount\n"						
						}
						if(document.conveyancing_quote.Remortgage_Value.value==""){												
							error = error + "Please enter the value of the property you wish to remortgage\n"						
						}	
					
					}else{

						if(document.conveyancing_quote.Property_Address.value==""){												
							error = error + "Please enter the address of the property.\n"						
						}
						if(document.conveyancing_quote.Property_Postcode.value==""){												
							error = error + "Please enter the postcode of the property.\n"						
						}
						if(document.conveyancing_quote.Property_Price.value==""){												
							error = error + "Please enter the value of the property\n"						
						}

					}						
										
if (error!="") {
alert(error)
document.returnValue=false;
}
else {

document.returnValue=true;	
}	
}

function toggleSet(rad) {
alert("toggle");

  	var type = rad.value; 
	alert(type);  
  	for(var k=0,elm;elm=rad.form.elements[k];k++)     
  	if(elm.className=='item')       
  	elm.style.display = elm.id==type? 'block':''; 
} 