function checkForm()
{
  	theForm = window.document.custStep1;
	
	if ( isEmpty(theForm.colour, 'Please select a Colour')) {
			return;
	} else { 
		theForm.submit();
	}
}

function checkForm2()
{
  	theForm = window.document.custStep1;
	
	if ( isEmpty(theForm.feetSize, 'Please select a Size') || isEmpty(theForm.feetRightColour, 'Please select a Colour for you Right Foot')|| isEmpty(theForm.feetLeftColour, 'Please select a Colour for you Left Foot')) {
			return;
	} else { 
		theForm.submit();
	}
}

function checkFormMittens()
{
  	theForm = window.document.custStep1;
	
	if ( isEmpty(theForm.size, 'Please select a Size') || isEmpty(theForm.mittensRightColour, 'Please select a Colour for you Right Foot')|| isEmpty(theForm.mittensLeftColour, 'Please select a Colour for you Left Foot')) {
			return;
	} else { 
		theForm.submit();
	}
}

function checkFormTail()
{
  	theForm = window.document.custStep1;
	
		if (isEmpty(theForm.size, 'Please select a Size')){
			return;
		} 
		
		if (theForm.tailfab1 != 'undefined' && theForm.tailfab1){	
			if (isEmpty(theForm.tailfab1, 'Please select an primary colour for your tail')){

				return;
			} 
		}
		if (theForm.tailfab2 != 'undefined' && theForm.tailfab2){
			if (isEmpty(theForm.tailfab2, 'Please select an secondary colour for your tail')){

				return;
			} 
		}
			
		theForm.submit();

}
