var url ="";
var what = "SetSubcat(req.responseText)";

function GetSubcatEC(username,year,month,PageUrl)
{
	if(username!="")
	{
		url=PageUrl;
		what = "SetSubcatEC(req.responseText)";
		DoCallback("u="+username+"&y="+year+"&m="+month);
	}
}
function SetSubcatEC(State11)
{
	var stateBoxEC = document.getElementById("show_calender");
	stateBoxEC.innerHTML = State11;
}


//FOR SORTING FEATURE STARTS
function GetSortValue(current, photoId, sortOrder,PageUrl)
{
	if(current!="")
	{
		//alert(current+"::"+photoId+"::"+sortOrder);
		if(current == sortOrder)
		{
			return false;
		}
		else
		{
			url=PageUrl;
			what = "SetSortValue(req.responseText)";
			DoCallback("current="+current+"&photoId="+photoId+"&sortOrder="+sortOrder);
		}
		
	}
	else
	{
		alert("Please Enter Sort Order");
	}
}







function GetSortValuePhoto(current, photoId, sortOrder, albumID, PageUrl)
{
	if(current!="")
	{
		//alert(current+"::"+photoId+"::"+sortOrder);
		if(current == sortOrder)
		{
			return false;
		}
		else
		{
			url=PageUrl;
			what = "SetSortValue(req.responseText)";
			DoCallback("current="+current+"&photoId="+photoId+"&sortOrder="+sortOrder+"&albumID="+albumID);
		}
		
	}
	else
	{
		alert("Please Enter Sort Order");
	}
}











function SetSortValue(ReturnValue)
{
	//alert(ReturnValue);
	var sortString = document.getElementById("DISPLAY_RECORD");
	sortString.innerHTML = ReturnValue;
}
//FOR SORTING FEATURE ENDS
