function updateMatcQty(inputnum,additem,ischeckbox){
	vwqty = $("input[name='vwquantity" + inputnum + "']");
	if(ischeckbox){
		if($(".vwcheck" + inputnum).attr("checked")){
			vwqty.attr("value","1");
		} else {
			vwqty.attr("value","0");	
		}		
	} else {
		if(additem){
			vwqty.attr("value","1");
			$("#vwadd" + inputnum).hide();
			$("#vwdel" + inputnum).show();
		} else {
			vwqty.attr("value","0");
			$("#vwadd" + inputnum).show();
			$("#vwdel" + inputnum).hide();
		}		
	}
}

$(document).ready(function(){
	$(".matchideprods").hide();
	$(".matcother").hide();
	$(".matcviewmore a:first").click(function(){
		$(".matcother").show();
		$(".matcviewmore").hide();
		$(".matchideprods").show();
		return false;
	});
	$(".matchideprods a:first").click(function(){
		$(".matcother").hide();
		$(".matcviewmore").show();
		$(".matchideprods").hide();
		return false;
	});
});
