function validate(myForm) {
if (myForm.os1.options[myForm.os1.options.selectedIndex].value == " ") {
alert("You must select a size");
return false;
}

// place any other field validations that you require here
// validate os0
myOption = -1;
for (i=myForm.os0.length-1; i > -1; i--) {
if (myForm.os0[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a color");
return false;
}

// place any other field validations that you require here
myForm.submit(); // this line submits the form after validation
}

//------------------------------------------------------------------------------

function validate2(myForm) {
if (myForm.amount.options[myForm.amount.options.selectedIndex].value == " ") {
alert("You must select an amount");
return false;
}

if (myForm.os0.value == "") {
	alert("You must enter a persons name");
	return false;
}

// place any other field validations that you require here
// validate os1
myOption = -1;
for (i=myForm.os1.length-1; i > -1; i--) {
if (myForm.os1[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select an item");
return false;
}

// place any other field validations that you require here
myForm.submit(); // this line submits the form after validation
}

//---------------------------------------------------------------------------------
function getCheckedRadio(sRadio)
{
	var el = document.getElementsByTagName('input');
	if (el)
	{
		for (var i=0;i<el.length ;i++ )
		{
			if (el[i].type=='radio' && el[i].id==sRadio && el[i].checked)
				return el[i].value;
		}
	}
	return '';
}

function validate3(myForm) {
if (myForm.custom2.options[myForm.custom2.options.selectedIndex].value == " ") {
alert("You must select a size");
return false;
}

// place any other field validations that you require here
// validate os0
myOption = -1;
for (i=myForm.custom1.length-1; i > -1; i--) {
if (myForm.custom1[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a color");
return false;
}

// place any other field validations that you require here
joinFields();
myForm.submit(); // this line submits the form after validation
}

function setSize(oElem,sSize)
{
	if (sSize=='All') var aSize = new Array('6mo','12mo','18mo','2T','3T','4T','5T');
	else var aSize = sSize.split(',');
	//first remove all
	for (var i=oElem.options.length-1; i>=0; i--)
	{
		if (oElem.options[i].value != '--') oElem.remove(i);
	}
	//now add the ones we need back
	for (var i=0; i<aSize.length; i++)
	{
		oElem.options[oElem.options.length] = new Option(aSize[i],aSize[i]);
	}
}