function draw_sku_option(){
	var i;
	var dropdown_display;
	if (product_var.length > 1){
		document.write("<TD> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>");
		document.write("<TR VALIGN=TOP><TD class=ProductAttrlabel>To Order:</TD><TD>");
		document.write("<SELECT class=ProductAttr NAME=sku >");
		i=attr_values.length-1;
		labelstr="Select a Size";
		//~ while (attr_label[i]!= "" && i >=0 ) {
			//~ labelstr=labelstr + attr_label[i] + " ";
			//~ if (i>0)
			//~ {
				//~ labelstr = labelstr + "-&nbsp;";
			//~ }
			//~ i=i-1;
		//~ }
		writeoption("",labelstr ,sel_values[0]);
		for (atn=0;atn< product_var.length ;atn++){
			//set up the dropdown_display:
			//dropdown_display = product_var[atn].attr_value2;
			//if(dropdown_display==""){
				dropdown_display=product_var[atn].attr_value1;
			//}else{
			//	dropdown_display=dropdown_display + " - " + product_var[atn].attr_value1
			//}
			if (useVariantPrice=="True"){
				if (on_sale=="True"){
					dropdown_display=dropdown_display + " $"+ OKStrOfPenny(product_var[atn].price_sale)
				}else{
					dropdown_display=dropdown_display + " $"+ OKStrOfPenny(product_var[atn].price_list)
				}
			}
			if (product_var[atn].avail_msg!=""){dropdown_display=dropdown_display + " &nbsp;-&nbsp; " + product_var[atn].avail_msg;}
			//write the option here
			writeoption(product_var[atn].sku,dropdown_display,sel_values[0]);
		}
		document.write("</SELECT></TD></TR></TABLE></TD>");
	}else if(product_var.length==1){
		document.write("<TD> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>");
		document.write("<TR VALIGN=TOP >");
		i=0;
		while (attr_label[i]!= "") { 
		document.write("<TD class=ProductAttrlabel>" + attr_label[i] + ":" + "</TD><TD class=ProductAttr>");
		document.write("&nbsp;" + eval("product_var[0].attr_value" + (i+1)) + "&nbsp;&nbsp;" + "</TD>");
		i++;
		}
		document.write("<INPUT TYPE=HIDDEN  NAME=sku VALUE=\"" + product_var[0].sku + "\" >");
		document.write("</TR></TABLE></TD>");
	}
} //end draw_sku_option

//sorting overrides
//sizelist=" ,XXX-Small,XX-Small,X-Small,Small,S,Medium,M,Large,L,X-Large,XL,XX-Large,XXL,2XL,XXX-Large,3XL,3X,4XL,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60, ";
sizelist=" ,0-3 month,3-6 month,6 month,6-9 month,12 month,18 month,24 month,36 month,2 ounce,11 ounce,";
sizelist+="15 ounce,64 ounce,6 5/8,6 3/4,6 7/8,7,7 1/8,7 1/4,7 3/8,7 1/2,7 5/8,7 3/4,7 7/8,5 inch,8 inch,";
sizelist+="8.5 inch,10 inch,10.5 inch,11 inch,12 inch,28 inch,42 inch,60 inch,72 inch,10\" x 4\",27 x 37,";
sizelist+="34 x 27,3' x 5',54 x 84,6 feet,60 x 50,60 x 80,Twin Size,Full Size,Queen Size,King Size,Bootie,";
sizelist+="Newborn,Infant,Baby,Toddler,Child,Youth,Juvenile,Adult,2,2-4,3,3-6,4,4-5,4-6,5,5-6,6,6x,6-7,6-8,";
sizelist+="6-9,7-8,7-9,8,8-10,9-11,10-12,10-13,12-14,14-16,16,18-20,24,29,40,44,48,50,52,54,56,58,2 Toddler,";
sizelist+="3 Toddler,4 Toddler,Kids 2X-Small,Kids Small,Kids Medium,Kids Large,Kids X-Large,Kids 2X-Large,";
sizelist+="3 X-Small,2 X-Small,X-Small,Small,Small - Medium,Medium,Medium - Large,Large,Large - X-Large,X-Large,";
sizelist+="2 X-Large,2X-Large,3 X-Large,3X-Large,4 X-Large,4X-Large, ";

function double_sort(a1,b1,a2,b2){
	var intval = 1; //intval is the value to be returned.  It starts at 1 and is only changed if a is NOT greater than b.
	//If a1 equals b1 then look at a2 & b2.  Otherwise look at a1&b1.
	if(a2==b2){
		//a1=b1, so look at a2<>b2
		
		//SECOND TERM SORT:
		intval= sizechart_sort(a1,b1);
	}else{
		//a1&b1 are different, if b1>a1 then make intval=-1.
		
		//FIRST TERM SORT:3

		intval=	string_sort(a2,b2);
	}
	return intval;
}
