function draw_buttons() {
	if(sbasket.no_items > 0) {		
				
		/* UNITEU Buttons */
		document.write("<br><TABLE width=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 ><TR><TD>");
		document.write("<INPUT TYPE=Image VALUE=\"Update Order\" SRC=\"assets/images/" + update_image + "\" ALT=\"click to update your cart\" ALIGN =CENTER id=Image4 name=Image4 >");
		document.write("</TD><TD>");
		document.write("<INPUT TYPE=Image VALUE=\"Clear Order\" Name=clearbasket SRC=\"assets/images/" + clear_image + "\" ALT=\"click to empty your cart\" ALIGN =CENTER id=Image2 name=Image2 >");
		document.write("</TD><TD> ");
		if (nonship=="1"){
			document.write("<INPUT TYPE=Image VALUE=\"Quote\" Name=paybasket SRC=\"assets/images/" + continue_image + "\" ALT=\"click to check out\" ALIGN =CENTER id=Image3 name=Image3 >");
		}else{
			document.write("<INPUT TYPE=Image VALUE=\"Purchase\" Name=shipbasket SRC=\"assets/images/" + continue_image + "\" ALT=\"click to check out\" ALIGN =CENTER id=Image1 name=Image1 >");
		}
		document.write("</TD></TR></TABLE>");		
	}
}

function draw_table() {
	if(sbasket.no_items > 0) {
		document.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"SubHeadbgcolor\"><tr><td><table cellpadding=\"3\" cellspacing=\"1\" border=\"0\" width=\"100%\">");
		if (page_option_2 =="1"){
			document.write("<tr><td align=\"center\" class=\"CartLabels\">Item#</td><td align=\"center\" class=\"CartLabels\">Image</td><td class=\"CartLabels\">Description</td><td align=\"center\" class=\"CartLabels\">Qty</td><td align=\"center\" class=\"CartLabels\">Price</td><td align=\"center\"  class=\"CartLabels\">Your Price</td><td align=\"center\"  class=\"CartLabels\">Discount</td><td align=\"center\"  class=\"CartLabels\">Total</td><td align=\"center\"  class=\"CartLabels\">Remove Item</td></TR>");
		}else{
			document.write("<tr><td align=\"center\" class=\"CartLabels\">Item#</td><td align=\"center\" class=\"CartLabels\">Image</td><td class=\"CartLabels\">Description</td><td align=\"center\" class=\"CartLabels\">Qty</td><td align=\"center\" class=\"CartLabels\">Price</td><td align=\"center\"  class=\"CartLabels\">Total</td><td align=\"center\"  class=\"CartLabels\">Remove Item</td></TR>");
		}
		for (atn=0;atn< sbasket.items.length ;atn++){
		  	document.write("<tr class=\"tablebgcolor\" valign=top><td class=cart_list_item align=center>");
			if (page_option_5 =="1"){
				document.write(sbasket.items[atn].stock_msg);
			}else{
				document.write(sbasket.items[atn].sku);
			}
			document.write("</TD><td class=cart_list_item>"); 
			if (sbasket.items[atn].image !=""){
			document.write("<a HREF=\"product.asp?dept_id=" + sbasket.items[atn].dept_id + "&pf_id="+ sbasket.items[atn].pf_id + "&\"  onClick=return(visitargs('product.asp','dept_id=" + sbasket.items[atn].dept_id + "&pf_id="+ sbasket.items[atn].pf_id + "&px_id="+ sbasket.items[atn].px_id + "&wish_id="+ sbasket.items[atn].wish_id + "&order_sid="+ order_sid + "&so_number="+ so_number + "&','URL'));  class=basketlinkP target=_top ><img src=\"assets/product_images/" + sbasket.items[atn].image + "\" border=0 width=75></A>");	
			}
			document.write("</TD><td class=cart_list_item>"); 
			document.write("<a HREF=\"product.asp?dept_id=" + sbasket.items[atn].dept_id + "&pf_id="+ sbasket.items[atn].pf_id + "&\"  onClick=return(visitargs('product.asp','dept_id=" + sbasket.items[atn].dept_id + "&pf_id="+ sbasket.items[atn].pf_id + "&px_id="+ sbasket.items[atn].px_id + "&wish_id="+ sbasket.items[atn].wish_id + "&order_sid="+ order_sid + "&so_number="+ so_number + "&','URL'));  class=basketlinkP target=_top > " + sbasket.items[atn].name + "</A>");	
			document.write(" <br>&nbsp;&nbsp;");
			var tempstr ="";               	
			if (sbasket.items[atn].attr_value1 !=""){ tempstr = sbasket.items[atn].attr_value1 + " "; }
			if (sbasket.items[atn].attr_value2 !=""){ tempstr += ", " + sbasket.items[atn].attr_value2 + " "; }
			if (sbasket.items[atn].attr_value3 !=""){ tempstr += ", " + sbasket.items[atn].attr_value3 + " "; }
			if (sbasket.items[atn].attr_value4 !=""){ tempstr += ", " + sbasket.items[atn].attr_value4 + " "; }
			if (sbasket.items[atn].attr_value5 !=""){ tempstr += ", " + sbasket.items[atn].attr_value5 + " "; }                         
			if (sbasket.items[atn].info_attr1 !=""){ tempstr += ", " + sbasket.items[atn].info_attr1 + " "; }
			if (sbasket.items[atn].info_attr2 !=""){ tempstr += ", " + sbasket.items[atn].info_attr2 + " "; }
			if (sbasket.items[atn].info_attr3 !=""){ tempstr += ", " + sbasket.items[atn].info_attr3 + " "; }
			document.write(tempstr.substring(0,tempstr.length-1)); 
			document.write(" </TD><td class=cart_list_item ALIGN=CENTER >");
			document.write("<INPUT style=\"text-align: center\" TYPE=Text NAME=qty_"+ atn + " SIZE=2,1 VALUE="+ sbasket.items[atn].quantity +" > ");
			document.write("</TD> ");		
			if (page_option_1 =="1"){
				document.write("<td class=cart_list_item  ALIGN=CENTER> $" + OKStrOfPenny(sbasket.items[atn].item_price) +" </TD>");
				if (page_option_2 =="1"){
					document.write("<td class=cart_list_item  ALIGN=CENTER> $" + OKStrOfPenny(sbasket.items[atn].item_price) +" </TD>");
					document.write("<td class=cart_list_item  ALIGN=CENTER> $" + OKStrOfPenny(sbasket.items[atn].discount) +" </TD>");
				}
				document.write("<td class=cart_list_item  ALIGN=CENTER> $" + OKStrOfPenny(sbasket.items[atn].item_total) +" </TD>");		
		  	}
			document.write("<td class=cart_list_item ALIGN=CENTER> ");
			if (sbasket.items[atn].award_qty_added==""){
				document.write("<a HREF=xt_orderform_delitem.asp onClick=return(visitargs('xt_orderform_delitem.asp','addto=" + addto + "&index="+ atn + "&','SURL'));  class=basketlinkP target=_top >");
				document.write("<IMG  SRC=assets/images/" +remove_image+ " BORDER=0 ALT=\""+  remove_image_alt + "\" ALIGN=CENTER ></A>");          
			}
			document.write("</TD></TR>");		
		}
		if ((page_option_1 =="1") && (page_option_2 =="1")){
			document.write("<tr class=\"tablebgcolor\"><td colspan=\"7\" align=\"right\"  class=\"cart_list_total\">Sub-Total:</td><td ALIGN=CENTER  class=\"cart_list_total\">");
			document.write(" $"+ OKStrOfPenny(sbasket.sub_total) +" </TD><td></td></TR>");
		}else if((page_option_1 =="1") && (page_option_2 !="1")){
			document.write("<tr class=\"tablebgcolor\"><td colspan=\"5\" align=\"right\"  class=\"cart_list_total\">Sub-Total:</td><td ALIGN=CENTER  class=\"cart_list_total\">");
			document.write(" $"+ OKStrOfPenny(sbasket.sub_total) +" </TD><td></td></TR>");
		}
		document.write("</TABLE></td></tr><tr><td height=\"10\" class=\"tablebgcolor\"></td></tr></table>");
	}
}

function draw_comment() {
	if(sbasket.no_items > 0) {
		if(comment_msg!=""){
			document.write("<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"SubHeadbgcolor\"><tr><td>");
			document.write("<table cellpadding=\"10\" cellspacing=\"0\" border=\"0\" width=\"100%\" class=\"tablebgcolor\"><tr><td>");
			document.write("<b>Comments</b><br>If you have any comments or special information for this order, enter it below before checking out:<br><br>");
			document.write("<INPUT TYPE=Text NAME=basket_comment SIZE=80 VALUE=\"" + sbasket.comment + "\">");
			document.write("</td></tr></table></td></tr></table><br><br>");
		}
		
		document.write("<table width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" border=\"0\"><tr><td id=\"box_cell\" style=\"padding:10px 10px 10px 10px;\">");
		
		document.write("<b>Promotion/Discount Code</b><br>");
		document.write("<INPUT TYPE=Text NAME=discount_code SIZE=20 VALUE=\"" + sbasket.discount_code + "\" >");
		document.write("<INPUT TYPE=Image VALUE=\"Update Order\" SRC=\"assets/images/btnapply.gif\" ALT=\"apply discount\" ALIGN=\"absmiddle\" id=Image4 name=Image4 >");
		document.write("<br>Enter coupon code above and hit Apply.");
		
		/* GOOGLE Button  */
		if (feature28 == "True")
		{
			document.write("</td><td width=\"25\" class=\"tablebgcolor\">&nbsp;<td><td class=\"cart_list_item\" valign=\"middle\" align=\"center\" id=\"box_cell\">");
			document.write("New!  Pay with Google Checkout.<br><INPUT TYPE=Image VALUE=\"GoogleCheckout\" Name=googlebasket SRC=\"" + ChkOutBtnURL + "\" ALT=\"Pay With Google Checkout\" ALIGN=CENTER id=Image5 name=Image5 >");
		}
		
		document.write("</td></tr></table>");
	}
}