	function getDynamicFormResponse(itemNo,qty,action)
	{
		try{
			var url ="../faces/tiles/components/checkout/shoppingCartItemsComponent.jsp";
			var params = null;
			if(qty != null){
				if(qty < 1 ){
					alert('Quantity should be greater than 0.');
					return false;
				}
				params =  {'invoke:action': 'ShoppingCartActionBean.shoppingCartAction', 'act':action,'qty':qty,'itemId':itemNo};
			}
			else{
				params = {'invoke:action': 'ShoppingCartActionBean.shoppingCartAction', 'act':action,'itemId':itemNo};
			}
			
			var myAjax = new Ajax.Updater(
				'shoppingCartItemsDiv', 
				url, 
				{
					method: 'GET', 
					parameters: params,
					onSuccess:showResponsex,
					onFailure:handleFail
				});
		}catch(exception){
			alert(exception.message);
		}
	}
	
	function showResponsex(transport){
		//alert(transport.responseText);
	}

	function mergeToggle(chkbox,loginId){
		if(chkbox.checked){
			getLoginForm('../faces/tiles/components/loginForm.jsp');
		}else{
			hideLoginForm('../faces/jsp/logout.jsp',loginId);
		}
	}