// JavaScript Document
	



function removeWishlist(WishListID)
	{
		if(WishListID!=0)
		{
			if(confirm("Do you sure to delete this wishlist"))
			{
				window.location.href=HTTP_PATH_MEMBER+'/wishlist/wishlist_listing_delete_action.php?WishListID='+WishListID
			}
		}
	}



function unlistWishlist(WishListID,action)
	{
		if(WishListID!=0)
		{
			if(confirm("Do you sure to "+action+" this wishlist"))
			{
				window.location.href=HTTP_PATH_MEMBER+'/wishlist/wishlist_pending_approval_action.php?WishListID='+WishListID+'&actionKey='+action;
			}
		}
	}

	/////////// FUNCTION USE IN ADD GROUP FOR HIDE AND SHOW REPLAY OPTION ///////////////////////
	function showhide(val)
	{
		if(val==0)
		{
			document.getElementById("ReplayEmail").style.display	=	"none";
		}
		if(val==1)
		{
			document.getElementById("ReplayEmail").style.display	=	"";
		}
	}
	////////////////////////////////////////////////////////////////////////////////////////////////
	
	function approveDenyWishList(WishListID,action)
	{
		
		
		if(WishListID!=0)
		{
			if(confirm("Do you sure to "+action+" this wishlist"))
			{
				window.location.href='wishlist_pending_approval_action.php?WishListID='+WishListID+"&actionKey="+action
			}
		}
	}

	////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////	PAGE ORDER //////////////////////////////////////

function changeOrder(order)
{
	if(order==1)
	{
		window.location.href="wishlist.php?orderBy="+order;
	}
	else
	{
		window.location.href="wishlist.php";
	}
}

function changeClass(order)
{
	if(order==1)
	{
		document.getElementById("Recent").className ="whiteTab";
		document.getElementById("Popular").className ="greyTab";	
	}
	else
	{
		document.getElementById("Recent").className ="greyTab";
		document.getElementById("Popular").className ="whiteTab";	
	}

}

function changeCategoryOrder(order,catId)
{
	catCondition	=	'';
	if(catId!='')
	{
		catCondition	=	"&catId="+catId;	
	}
	if(order==1)
	{
		window.location.href="wishlist_category.php?orderBy="+order+catCondition;
	}
	else
	{
		window.location.href="wishlist_category.php?orderBy="+order+catCondition;
	}
}

///////////////////////////////////////////////////////////	PAGE ORDER //////////////////////////////////////
