//Function to redirect to home page if user signed from mypage.
function validate(url)
{
	if( (page =='dashboard')|| (page =='mypage') || (page =='myfavourite') || (page =='recentvideos') || (page =='recentvisitors') || (page =='myplaylist') || (page =='listvideo') || (page =='myactiverecommend') || (page =='mypendingrecommend') || (page =='changepassword') || (page =='update'))
	{
		window.location = url;
	}
}
//Function to show myoage tab if user is authenticated.
function showmypage(){
	var element = $('header');
	if(element){
		Element.show(element);
	}
}
//Function to hide mypage tab if user is logged out.
function hidemypage(){
	var element = $('header');
	if(element){
		Element.hide(element);
	}	
}
