function show_desc(d_show)

{
		all_main = desc.length;

		if (all_main>1)

		{

				for (var i=0;i<all_main;i++)	

				{

					desc[i].style.visibility='hidden'; 

					desc[i].style.position='absolute';

				}

					desc[d_show].style.visibility='visible'; 

					desc[d_show].style.position='relative';

		}

		else

		{

					desc.style.visibility='visible'; 

					desc.style.position='relative';

		}

}

function thaydoi_tab(tab_id)

{

		all_tab = menu_tab.length;

		for (var i=0;i<all_tab;i++)	

		{

			//main = 'main'+i;

			//alert(main);

			menu_tab[i].className='tab_off'; 

		}	

		menu_tab[tab_id].className='tab_on';		

}
function check_signup()
{
		if (document.add_profile.MEMBER_EMAIL.value.length<6)
		{
			alert('ERROR EMAIL');
			document.add_profile.MEMBER_EMAIL.focus();
			return false;
		}
		if (document.add_profile.MEMBER_PASSWORD.value.length<6)
		{
			alert('ERROR PASSWORD');
			document.add_profile.MEMBER_PASSWORD.focus();
			return false;
		}		
		if (document.add_profile.MEMBER_FNAME.value=='')
		{
			alert('FIRST NAME NOT NULL');
			document.add_profile.MEMBER_FNAME.focus();
			return false;
		}
		if (document.add_profile.MEMBER_LNAME.value=='')
		{
			alert('LAST NAME NOT NULL');
			document.add_profile.MEMBER_LNAME.focus();
			return false;
		}		
}
function change_country ()
{
		var tongso_country = document.member_profile.country.length;
		for (var i=0;i<tongso_country;i++)
		{
				if (document.member_profile.country_hide.value==document.member_profile.country[i].value)
				document.member_profile.country[i].selected=true;
		}
}
function show_contact()

{

		all_main = main.length;

		if (all_main>1)

		{

				for (var i=0;i<all_main;i++)	

				{

					main[i].style.visibility='hidden'; 

					main[i].style.position='absolute';

				}
		}

		else

		{

					main.style.visibility='visible'; 

					main.style.position='relative';

		}

					contact.style.visibility='visible'; 

					contact.style.position='relative';		

}
function open_image(url,w,h)
{
	window.open('image.php?image='+url,'_blank','width='+w+',height='+h+',top=0,left=0,resizable=no,scrollbars=yes');
}

function show_desc_club()
{
	/*
		desc.style.visibility 		= 'visible';
		desc.style.position			= 'relative';
		gallery.style.visibility 	= 'hidden';
		gallery.style.position		= 'absolute';		
		click_desc.className		= 'tab_on_h' ;
		click_ga.className			= 'tab_off' ;
	*/
	if (document.check_check.giatri_click.value=='gallery')
	{
	click_desc.className		= 'tab_on_h' ;
	click_ga.className			= 'tab_off' ;	
	desc.innerHTML = document.check_check.tamthoi.value;
	document.check_check.giatri_click.value ='desc';
	}
}
function show_gallery_club()
{
	/*
		gallery.style.visibility 		= 'visible';
		gallery.style.position			= 'relative';
		desc.style.visibility 	= 'hidden';
		desc.style.position		= 'absolute';	
		click_desc.className		= 'tab_off' ;
		click_ga.className			= 'tab_on_h' ;		
	*/
	if (document.check_check.giatri_click.value=='desc')
	{
	click_desc.className		= 'tab_off' ;
	click_ga.className			= 'tab_on_h' ;			
	desc.innerHTML = document.check_check.gallery.value;
	//gallery.innerHTML = temp;	
	document.check_check.giatri_click.value ='gallery';
	}
}