function add_to_cart(form_name,product_id_name){
	var theform=eval(form_name);
	var cart_price=0;
	product_id = theform.product_code_id.value;
	if (product_price[product_id] == '') {
		 theform.op_1[0].value+=product_airmail[product_id];
		 theform.op_1[1].value+=product_seamail[product_id];
		 cart_price=theform.op_1[theform.op_1.selectedIndex].value;
	} else {
		cart_price=product_price[product_id];
	}
	theform.cart_item.value=product_display_id [product_id]+"^"+product_name[product_id]+"^"+cart_price+"^1^http://www.livingorient.com/"+product_cat_image[product_id];
	//alert(theform.product_code_id.value);
	//alert(theform.cart_item.value);
}


function print_product(product_id){
var form_name="buy"+product_display_id [product_id];
document.write('  		<table border=0 cellpadding=2 cellspacing=2>');
document.write('  			<tr>');
document.write('  				<td colspan=2>');
document.write('		  		<A href="product_detail.htm?'+product_id+'" class="list_title">'+product_name[product_id]+'</A><BR>');
document.write('		  		<B>Product Code: '+product_display_id [product_id]+'</B>');
document.write('		  		</td>');
document.write('		  	</tr>');
document.write('		  	<tr>');
document.write('		  		<td>');
document.write('				<form name="'+form_name+'" action="http://www.funtier.com/cgi-bin/cart/cart.pl" method=POST onSubmit="javascript:add_to_cart('+form_name+',product_id);"><input type="hidden" name="uid" value="livingorient">');
document.write('				<A href="product_detail.htm?'+product_id+'" class="list_title"><IMG src="'+product_cat_image[product_id]+'" border="0" width="180"></A>');
document.write('		  		</td>');
document.write('		  		<td>');
document.write('		  		<table border=0 cellpadding=0 cellspacing=0>');
document.write('		  		 <tr><td align="right" valign="top">LxWxH:</td><td align="left" valign="top"> '+product_size[product_id]+'</td></tr>');
document.write('		  		 <tr><td align="right" valign="top">Weight:</td><td align="left" valign="top"> '+product_weight[product_id]+'</td></tr>');
document.write('		  		 <tr><td align="right" valign="top">S&H: </td><td align="left" valign="top">'+product_sh[product_id]+'</td></tr>');
document.write('		  		 <tr><td colspan="2"><BR></td></tr>');
document.write('		  		 <tr><td align="right" valign="top"><font color="#000000">Price:</font><BR></td><td align="left" valign="top"><BR></td></tr></table>');

if (product_price[product_id] == '') {
	document.write('				<select name="op_1">');
	document.write('				<option value="Airmail - $">US$'+product_airmail[product_id]+' (by Airmail)');
	document.write('				<option value="Seamail - $">US$'+product_seamail[product_id]+' (by Seamail)');
	document.write('				</select>');
} else {
	document.write(				'<font color="#000000">US$'+product_price[product_id]+' '+product_price_desc[product_id]+'</font>');
}
document.write('					<input name="cart_item" type="hidden" value="">');
document.write('					<input type=hidden name=product_code_id value="'+product_id+'">');
document.write('					<input type="image" name="cart_add" src="images/cart/add_to_cart.gif" alt="Add to Cart" border="0">');
document.write('					</form>');
document.write('		  		<BR>');
document.write('		  		</td>');
document.write('		  	</tr>');
document.write('		  </table>');
document.write('		<BR><BR>');
}