//switching client control tabs
function switchTab(tab, handle)
{	
	var tabs = document.getElementsByClassName(handle);
	for(var i = 0; i < tabs.length; i++)
	{
		$(tabs[i]).style.display = 'none';
	}	
	
	$(tab).style.display = '';
}

//open a javascript popup
function openPopup(url, name)
{
	window.open(url, name, 'left=200, top=200, width=500, height=650, resizable=1, scrollbars=1');
}

