function hideAll()
{
	document.getElementById("divBody").style.display="none";
	document.getElementById("divFeet").style.display="none";
	document.getElementById("divHands").style.display="none";
	document.getElementById("divTail").style.display="none";
	document.getElementById("divHead").style.display="none";
}

function showFullsuit()
{
	document.getElementById("divBody").style.display="block";
	document.getElementById("divFeet").style.display="block";
	document.getElementById("divHands").style.display="block";
	document.getElementById("divTail").style.display="block";
	document.getElementById("divHead").style.display="block";
	document.getElementById("tailAttached").disabled=false;
}

function showPartial()
{
	document.getElementById("divBody").style.display="none";
	document.getElementById("divFeet").style.display="block";
	document.getElementById("divHands").style.display="block";
	document.getElementById("divTail").style.display="block";
	document.getElementById("divHead").style.display="block";
	document.getElementById("tailAttached").disabled=true;
	document.getElementById("tailRemovable").checked=true;
}

function showHeadless()
{
	document.getElementById("divBody").style.display="none";
	document.getElementById("divFeet").style.display="block";
	document.getElementById("divHands").style.display="block";
	document.getElementById("divTail").style.display="block";
	document.getElementById("divHead").style.display="none";
	document.getElementById("tailAttached").disabled=true;
	document.getElementById("tailRemovable").checked=true;
}

function convertable()
{
	document.getElementById("feetEnd").disabled=true;
	document.getElementById("handEnd").disabled=true;
}

function onePiece()
{
	document.getElementById("feetEnd").disabled=true;
	document.getElementById("handEnd").disabled=true;
	document.getElementById("tailRemovable").disabled=true;
	document.getElementById("tailAttached").checked=true;
}

function nonConvertable()
{
	document.getElementById("feetEnd").disabled=false;
	document.getElementById("handEnd").disabled=false;
}

function showDiv(ID)
{
	document.getElementById(ID).style.display="block";
}

function hideDiv(ID)
{
	document.getElementById(ID).style.display="none";
}

function exclude(disable,select)
{
	document.getElementById(disable).disabled=true;
	document.getElementById(select).checked=true;
}

function check(ID)
{
	document.getElementById(ID).checked=true;
}

function disable(ID)
{
	document.getElementById(ID).disabled=true;
	document.getElementById(ID).value=false;
}

function check(form)
{
with(form)
{
	if(name.value==null||name.value=="")
	{
		alert("You must enter your name.");
		name.focus();
		return false;
	}

	if(email.value==null||email.value=="")
	{
		alert("You must enter a valid email.");
		email.focus();
		return false;
	}
	apos=email.value.indexOf("@");
	dotpos=email.value.lastIndexOf(".");
	if(apos<1||dotpos-apos<2)
	{
		alert("Invalid Email. Enter a valid email address.");
		email.focus();
		return false;
	}

	if(bodytype.value=="void")
	{
		alert("Please Choose a Quote Type");
		bodytype.focus();
		return false;
	}

	if(bodytype.value=="Fullsuit")
	{
		if(height.value==null||height.value=="")
		{
			alert("You must enter your height.");
			height.focus();
			return false;
		}
		if(weight.value==null||weight.value==""||isNaN(weight.value))
		{
			alert("You must enter an approximation of your weight.");
			weight.focus();
			return false;
		}
		if(body.value=="void")
		{
			alert("You must select a body type for this quote.");
			body.focus();
			return false;
		}
		if(padding.value=="void")
		{
			alert("You must select a padding option for this quote.");
			padding.focus();
			return false;
		}
		if(locomotion.value=="void")
		{
			alert("You must select a locomotion option for this quote.");
			locomotion.focus();
			return false;
		}

		if(feet.value=="void")
		{
			alert("You must select a feet option for this quote.");
			feet.focus();
			return false;
		}
		if(feet_end.value=="void" && body.value=="Standard")
		{
			alert("You must select a feet end / fur split option for this quote.");
			feet_end.focus();
			return false;
		}
		if(!feetClawed[0].checked && !feetClawed[1].checked)
		{
			alert("You must select a foot claw option for this quote.");
			feet_end.focus();
			return false;
		}

		if(hands.value=="void")
		{
			alert("You must select a hand option for this quote.");
			hands.focus();
			return false;
		}
		if(hand_end.value=="void" && body.value=="Standard")
		{
			alert("You must select a hand end / fur split option for this quote.");
			hand_end.focus();
			return false;
		}
		if(!handClawed[0].checked && !handClawed[1].checked)
		{
			alert("You must select a hand claw option for this quote.");
			hand_end.focus();
			return false;
		}

		if(!tailAttached[0].checked && !tailAttached[1].checked)
		{
			alert("You must select a tail attachment option for this quote.");
			tailAttached.focus();
			return false;
		}

		if(eyes.value=="void")
		{
			alert("You must select an eye option for this quote.");
			eyes.focus();
			return false;
		}
		if(teeth.value=="void")
		{
			alert("You must select a teeth option for this quote.");
			teeth.focus();
			return false;
		}
	}

	elseif(bodytype.value=="Partial")
	{
		if(feet.value=="void")
		{
			alert("You must select a feet option for this quote.");
			feet.focus();
			return false;
		}
		if(feet_end.value=="void")
		{
			alert("You must select a feet end / fur split option for this quote.");
			feet_end.focus();
			return false;
		}
		if(!feetClawed[0].checked && !feetClawed[1].checked)
		{
			alert("You must select a foot claw option for this quote.");
			feet_end.focus();
			return false;
		}

		if(hand.value=="void")
		{
			alert("You must select a hand option for this quote.");
			hand.focus();
			return false;
		}
		if(hand_end.value=="void")
		{
			alert("You must select a hand end / fur split option for this quote.");
			hand_end.focus();
			return false;
		}
		if(!handClawed[0].checked && !handClawed[1].checked)
		{
			alert("You must select a hand claw option for this quote.");
			hand_end.focus();
			return false;
		}

		if(eyes.value=="void")
		{
			alert("You must select an eye option for this quote.");
			eyes.focus();
			return false;
		}
		if(teeth.value=="void")
		{
			alert("You must select a teeth option for this quote.");
			teeth.focus();
			return false;
		}
	}

	elseif(bodytype.value=="Headless")
	{
		if(feet.value=="void")
		{
			alert("You must select a feet option for this quote.");
			feet.focus();
			return false;
		}
		if(feet_end.value=="void")
		{
			alert("You must select a feet end / fur split option for this quote.");
			feet_end.focus();
			return false;
		}
		if(!feetClawed[0].checked && !feetClawed[1].checked)
		{
			alert("You must select a foot claw option for this quote.");
			feet_end.focus();
			return false;
		}

		if(hand.value=="void")
		{
			alert("You must select a hand option for this quote.");
			hand.focus();
			return false;
		}
		if(hand_end.value=="void")
		{
			alert("You must select a hand end / fur split option for this quote.");
			hand_end.focus();
			return false;
		}
		if(!handClawed[0].checked && !handClawed[1].checked)
		{
			alert("You must select a hand claw option for this quote.");
			hand_end.focus();
			return false;
		}
	}
}
}