function popupWindowWithFocus(href, name, features){
	myWindow = window.open(href,name,features);
	myWindow.focus();
}

function updateParent(newURL) {
	opener.document.location = newURL;
	self.close();
}

function load2(form) {
	var url = form.states.options[form.states.selectedIndex].value;
	location.href = url
	return false;
} 

function showAllTabs(){
	$('div.ui-tabs-panel').each(function() {
		$(this).removeClass("ui-tabs-hide");
	});
}

function collapseTabs(){
	$('div.ui-tabs-panel').each(function() {
		$(this).addClass("ui-tabs-hide");
	});
	$('div.ui-tabs-panel:first').removeClass("ui-tabs-hide");
}
    	
function hideElement(id){
    	document.getElementById(id).style.display = 'none';
}

    	
function displayElement(id){
    	document.getElementById(id).style.display = 'block';
}
