//global logstate=0;

//check if member has logedin or not
function chklog()
{
	return logstate;
}


//submit form for login
function logsub()
{
    document.forms["logform"].submit();
}



//set logstate variable
function satlog(stat)
{
	logstate = stat;
}


//filler function : if user clicks on a menu item instead of selecting from submenu options

function navbar()
{
}




//join ama
function show_joinama()
	{
         //alert("join");
         hide_aboutama();
		// subshow();
		document.getElementById("joinama_menu").className="show";

	}

function hide_joinama()
	{
		document.getElementById("joinama_menu").className="hide";
		//subhide();
	}


//about ama
function show_aboutama()
	{
		hide_joinama();
		hide_membersonly();
		//subshow();
		document.getElementById("aboutama_menu").className="show";
	}


function hide_aboutama()
	{
		document.getElementById("aboutama_menu").className="hide";
		//subhide();
	}


//members only
function show_membersonly()
	{
		hide_aboutama();
		hide_countries();
		//subshow();
		document.getElementById("membersonly_menu").className="show";
	}

function hide_membersonly()
	{
		document.getElementById("membersonly_menu").className="hide";
		//subhide();
	}


//regions
function show_countries()
	{
		hide_membersonly();
		//subshow();
		document.getElementById("countries_menu").className="show";
	}

function hide_countries()
	{
		hide_India();
		document.getElementById("countries_menu").className="hide";
		//subhide();
	}


			

//India's regions
function show_India()
	{
		//subshow();
		document.getElementById("india_menu").className="show";
	}

function hide_India()
	{
		document.getElementById("india_menu").className="hide";
	}



