function addToCartForm(bookTitle, price1, price2, price3) {
	
	document.write("<!--  "+bookTitle+" -->");
	document.write("<form class=\"simpleCart_shelfItem\">");
	document.write("  <input type=\"hidden\" class=\"item_name\" value=\""+bookTitle+"\"/>");
	document.write("  <table>");
	document.write("  <tr>");
    document.write("    <td><input type=\"hidden\" value=\"Shipping Destination\"><small>Shipping Destination</small></td>  ");
	document.write("    <td><input type=\"hidden\" value=\"Quantity\"><small>Quantity</small></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("  <td>");
	document.write("  <select class=\"item_price\" >");
	document.write("    <option value=\""+price1+"\">Canada "+price1+"</option>");
	document.write("    <option value=\""+price2+"\">USA "+price2+"</option>");
	document.write("    <option value=\""+price3+"\">International "+price3+"</option>");
	document.write("  </select>");
	document.write("  </td>");
	document.write("  <td>		");
	document.write("  <input type=\"text\" class=\"item_quantity quantity\" value=\"1\" />");
	document.write("  </td>");
	document.write("  </tr>");
	document.write("  <tr >");
	document.write("  <td colspan=\"2\" align=\"center\">");
	document.write("<input type=\"image\" src=\"img/btn_cart_LG.gif\" class=\"item_add\" width=\"120\" height=\"26\" onclick=\"window.open('cart.html', '_self'); return false;\"/>");
	document.write("  </td>");
	document.write("  </tr>");
	document.write("  </table> ");
	document.write("</form>");
}

function outputHrefImgPNGForIE(graphic, imgPath, onClickAction, attributes) {
	document.write("<a style=\"text-decoration: none;\" href=\"javascript:;\" onclick=\""+onClickAction+"\">" +
			"<img "+getPNGDisplayForIE(graphic, imgPath)+attributes+" /></a>");
}

/**
 * Outputs input tag with image type - used to cater for a limitation 
 * in IE with displaying PNG images. 
 * @param graphic
 * @param attributes
 * @return
 */
function outputInputImgPNGForIE(graphic, imgPath, attributes) {
	document.writeln("<input type=\"image\" "+getPNGDisplayForIE(graphic, imgPath)+attributes);
}

function outputCartPNGForIE(graphic, imgPath, attributes) {
	//<img src="img/cart.png" style="border: none" width="20" height="20"/>cart
	document.write("<img "+getPNGDisplayForIE(graphic, imgPath)+attributes+" />cart");
}

function getPNGDisplayForIE(graphic, imgPath) {
	var IE = /*@cc_on!@*/false;
	if (IE) {
		return "src=\""+imgPath+"/blank.gif\" style=\"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imgPath+"/"+graphic+"', sizingMethod='scale');\" ";
	} else {
		return "src=\""+imgPath+"/"+graphic+"\" ";
	}
}


