
<!--
	v = false;
//-->

<!--
	if (typeof(Option) + "" != "undefined") v = true;
//-->

<!--  Begin
	if (v) {
		a = new Array();
		aln = 0;
	}

	function getFormNum (formName) {
		formNum = -1;
		for (i = 0; i < document.forms.length; i++) {
			tempForm = document.forms[i];
			if (formName == tempForm) {
				formNum = i;
				correctForm = tempForm;
				break;
			}
		}
		return formNum;
	}

	function jmp (formName, elementNum) {
		getFormNum(formName);
		if (formNum >= 0) {
			with (document.forms[formNum].elements[elementNum]) {
				i = selectedIndex;
				if (i >= 0) {
					location = options[i].value;
				}
			}
		}
	}

	function O (txt, url) {
		a[k] = new Option(txt, url);
		k++;
	}

	function F (txt, value) {
		a[k] = new Option(txt, value);
		k++;
	}

	function relate (formName, elementNum, j) {
		if (v) {
			k = 1;

			if (j == 0) {  // default category item
				a = new Array();
				O ("-- Pick Your Size --","");
			}
		
			if(j == 1) { // 1st category items: Mens Footwear
				a = new Array();
				menshoesize();
			}

			if (j == 2) { // 2nd category items: Mens Jackets
				a = new Array();
				menclothingsize();
			}
			
			if (j == 3) { // 3rd category items: Mens Jumpers
				a = new Array();
				menclothingsize();
			}
			
			if (j == 4) { // 4th category items: Mens Pants
				a = new Array();
				menpantsize();
			}
			
			if (j == 5) { // 5th category items: Mens Shirts
				a = new Array();
				menshirtsize();
			}
			
			if (j == 6) { // 6th category items: Womens Footwear
				a = new Array();
				ladyshoesize();
			}
			
			if (j == 7) { // 7th category items: Womens Jackets
				a = new Array();
				ladyclothingsize();
			}
			
			if (j == 8) { // 8th category items: Womens Jumpers
				a = new Array();
				ladyclothingsize();
			}
			
			if (j == 9) { // 9th category items: Womens Pants/Skirts
				a = new Array();
				ladypantsize();
			}
			
			if (j == 10) { // 10th category items: Womens Shirts/Tops
				a = new Array();
				ladyclothingsize();
			}
			
			if (j == 11) { // 11th category items: Boys Footwear
				a = new Array();
				youthshoesize();
			}
			
			if (j == 12) { // 12th category items: Boys Jackets
				a = new Array();
				youthclothingsize();
			}
			
			if (j == 13) { // 13th category items: Boys Jumpers
				a = new Array();
				youthclothingsize();
			}
			
			if (j == 14) { // 14th category items: Boys Shirts
				a = new Array();
				youthclothingsize();
			}
			
			if (j == 15) { // 15th category items: Boys Pants
				a = new Array();
				youthpantsize();
			}
			
			if (j == 16) { // 16th category items: Girls Footwear
				a = new Array();
				youthshoesize();
			}

			if (j == 17) { // 16th category items: Girls Shirts/Tops
				a = new Array();
				youthclothingsize();
			}

			if (j == 18) { // 16th category items: Girls Jackets/Jumpers
				a = new Array();
				youthclothingsize();
			}

			if (j == 19) { // 16th category items: Girls Pants/Skirts
				a = new Array();
				youthpantsize();
			}

			aln2 = a.length;
			getFormNum(formName);

			if (formNum >= 0) {
//				formNum = formNum;
				elementNum = elementNum + 2;
				with (document.forms[formNum].elements[elementNum]) {
					for (var i = options.length - 1; i > 0; i--) {
						options[i] = null;
					}
					for (var i = 1; i < aln2; i++) {
						options[i - 1] = a[i];
					}
					options[0].selected = true;
				}
			}
		} else {
			jmp(formName, elementNum);
		}
	}
function ladyclothingsize() {
F("-- Pick Your Size --","");
F("XS","1");
F("S","2");
F("M","3");
F("L","4");
F("6","13");
F("8","17");
F("10","21");
F("12","25");
F("14","49");
F("16","50");
F("18","110");
F("20","158");
F("22","178");
F("24","179");
F("Any Size","117");
}
function ladypantsize() {
F("-- Pick Your Size --","");
F("8","17");
F("10","21");
F("12","25");
F("14","49");
F("16","50");
F("Any Size","117");
}

function ladyshoesize() {
F("-- Pick Your Size --","");
F("5","11");
F("5½","12");
F("6","13");
F("6½","14");
F("7","15");
F("7½","16");
F("8","17");
F("8½","18");
F("9","19");
F("9½","20");
F("10","21");
F("10½","22");
F("11","23");
F("Any Size","117");
}

function menclothingsize() {
F("-- Pick Your Size --","");
F("S","2");
F("M","3");
F("L","4");
F("XL","5");
F("XXL","6");
F("Any Size","117");
}

function menshirtsize() {
F("-- Pick Your Size --","");
F("XS","1");
F("S","2");
F("M","3");
F("L","4");
F("XL","5");
F("XXL","6");
F("3xL","101");
F("39","38");
F("40","58");
F("41","39");
F("42","41");
F("43","42");
F("44","43");
F("46","139");
F("48","44");
F("Any Size","117");
}

function menpantsize() {
F("-- Pick Your Size --","");
F("30","29");
F("31","30");
F("32","31");
F("33","32");
F("34","33");
F("35","34");
F("36","35");
F("37","36");
F("38","37");
F("39","30");
F("40","58");
F("42","41");
F("44","43");
F("46","45");
F("Any Size","117");
}

function menshoesize() {
F("-- Pick Your Size --","");
F("5","11");
F("5½","12");
F("6","13");
F("6½","14");
F("7","15");
F("7½","16");
F("8","17");
F("8½","18");
F("9","19");
F("9½","20");
F("10","21");
F("10½","22");
F("11","23");
F("11½","24");
F("12","25");
F("12½","26");
F("13","27");
F("13½","28");
F("Any Size","117");
}

function youthclothingsize() {
F("-- Pick Your Size --","");
F("2","153");
F("4","9");
F("6","13");
F("8","17");
F("10","21");
F("12","25");
F("14","49");
F("Any Size","117");
}

function youthpantsize() {
F("-- Pick Your Size --","");
F("4","9");
F("6","13");
F("8","17");
F("10","21");
F("12","25");
F("14","49");
F("Any Size","117");
}

function youthshoesize() {
F("-- Pick Your Size --","");
F("6","13");
F("7","15");
F("8","17");
F("9","19");
F("10","21");
F("11","23");
F("12","25");
F("13","27");
F("1","162");
F("2","153");
F("3","7");
F("4","9");
F("5","1");
F("Any Size","117");
}

// End -->
