function changeClass(obj, newClass) {
	obj.className = newClass;	
}

function gotoPage(url, newWin) {
	if (newWin)
		window.open(url);
	else
		window.location = url;
}

function toggle(objId) {
	var obj = document.getElementById(objId);
	
	if (obj != null) {
		if (obj.style.display == '') { obj.style.display = 'none'; }
		else { obj.style.display = ''; }
	}
}

function toggleOn(objId) {
	var obj = document.getElementById(objId);
	
	if (obj != null) {
		obj.style.display = '';
	}
}

function toggleOff(objId) {
	var obj = document.getElementById(objId);
	
	if (obj != null) {
		obj.style.display = 'none';
	}
}
/*
function adjustTopMenu() {
	var topMenu = document.getElementById('top_menu');
	if (document.documentElement.scrollTop > 140) {
		topMenu.style.top = document.documentElement.scrollTop - 140;
	} else {
		topMenu.style.top = -10;
	}
}
*/

function checkEnter(e) {
	if (!e) var e = window.event;
	if (e.keyCode) code = e.keyCode;
	else if (e.which) code = e.which;
	
	if (code==13) {
		document.forms.client_login.submit();
	}
}