function navigate(url)
	{window.location=url;}
function redirect(el)
	{window.location=el.value;}
	
function open_div(id){
	document.getElementById(id).className='show';
	return false;
}
	
function open_divv(id){
	document.getElementById(id).className='show';
}
function close_div(id){	
	document.getElementById(id).className='hide';
	return false;
}
function close_divv(id){	
	document.getElementById(id).className='hide';
}

function hide_div(id){	
	document.getElementById(id).className='hidden';
}

function toggle(name)
{
  $('#'+name).toggleClass('hidden');
  return false;
}

function swtabz(rtab,uid)
{

  tohide = $("#tabbodycontainer_"+uid+" > *");
  toshow = $('#tabbody_'+rtab+'_'+uid);
 
  tohide.addClass('tabbody');
  tohide.removeClass('currenttabbody');
  toshow.addClass('currenttabbody');
  toshow.removeClass('tabbody');

  tohide = $("#tabcontainer_"+uid+" > div");
  toshow = $('#tab_'+rtab+'_'+uid);
 
  tohide.addClass('tab');
  tohide.removeClass('currenttab');
  toshow.addClass('currenttab');
  toshow.removeClass('tab');
  
}