function showCityInputTag()
{
	city = $('city');
	city2 = $('city2');
	
	if (city.value != 0)
	{		
		city2.hide();
	}
	else
	{
		city2.show();
	}
	
}

function showDepartamentPostInputTag()
{
	post = $('departament_post');
	post2 = $('departament_post2');
	
	if (post.value != 0)
	{		
		post2.hide();
	}
	else
	{
		post2.show();
	}
	
}

function showWifeInputTag()
{
	post = $('maritalstatus');
	post2 = $('wife_div');
	
	if (post.value != 1)
	{		
		post2.hide();
	}
	else
	{
		post2.show();
	}	
}

function showKidsInputTag()
{
	post = $('kids');	
	for (i=1; i<=6; i++)
	{
		$('kid'+i).hide();
	}
	for (i=1; i<= post.value; i++)
	{
		$('kid'+i).show();
	}
}


function addBlogPost(obj) 
{	
	if (obj.checked)
	{
		new Ajax.Updater('category_list', '/news/addComment?id=' + obj.value,
		{
		method: 'post' 
		}); 
	}
	else
	{
		new Ajax.Updater('category_list', '/news/delComment?id=' + obj.value,
		{
		method: 'post' 
		}); 
	}	
}

function poskyris_showhide(obj)
{
	if (obj.checked)
	{
		
		$('departaments_list').show();				
		$('skyrius').innerHTML = 'Poskyris'
	}
	else
	{
		$('departaments_list').hide();		
		$('skyrius').innerHTML = 'Skyrius'		
	}	
}

function haveBlogF(obj)
{
	if (obj.checked)
	{		
		$('haveBlogInfo').show();				
		$('blogInfo').hide();				
		
	}
	else
	{
		$('haveBlogInfo').hide();		
		$('blogInfo').show();		
			
			
	}	
	
}


function writeToBlogOrUser(obj)
{
	if (obj.checked)
	{		
		$('write_to_user').show();				
		$('write_to_blog').hide();				
		
	}
	else
	{
		$('write_to_user').hide();		
		$('write_to_blog').show();		
			
			
	}	
}