function check_partyType()
{
x = document.getElementById('calculatorForm')
groupSize = x.GroupSizeSelected.value
partyTypeIn = x.PartyTypeSelected.value


 				 if(partyTypeIn == 1){
				 				//Set Individuals to 2 people if they have selected a couple
								x.GroupSizeSelected.value = 2
				 }
				 
				 if(partyTypeIn == 2 && x.GroupSizeSelected.value < 3){
				 				//Set Individuals to 3 if the customer chooses a family
								x.GroupSizeSelected.value = 3							
				 }
				 
				 if(partyTypeIn == 3 && x.GroupSizeSelected.value < 2){
				 			  //Single Parent Family - Set to 2 people if a  single parent family is selected								
								x.GroupSizeSelected.value = 2
				 }				 
}

function check_winterSports(){      
      x = document.getElementById('calculatorForm')
      wintersports = x.WinterSportsCoverSelected.checked
			
			if(wintersports == true){
      					x.WinterSportsLength.disabled = false
			}else{
								x.WinterSportsLength.disabled = true
			}
      
      
}

function check_medical_conditions() {
	var medical_select = document.getElementById('MedicalConditionSelected');
	if (medical_select.checked) {
		window.location = 'http://www.goodtogoinsurance.com/index.php?xyzid=25&utm_source=affiliate&utm_medium=TextLink&utm_campaign=Ski-insurance.co.uk';
		return false;
	}
	return true;
}


