
function show_toggle(id) {
	var obj = document.getElementById(id);
	if ( obj.style.display == 'none' ) {
		obj.style.display = 'block';
		obj.focus();
	} else {
		obj.style.display = 'none';
	}
}

function check_click_target_class(e,cssClass){
	var target = (e && e.target) || (event && event.srcElement);
	if ( target.className == cssClass ) {
		return true;
	} else {
		return false;
	}
} 

function hide_id(id) {
	var obj = document.getElementById(id);
	if ( obj ) {
		obj.style.display = 'none';
	}
}

function confirm_go(u,m) {
	if ( confirm(m) ) {
		window.location = u;
	}
}

function image_hover_open(id) {
	var obj = document.getElementById(id);
	obj.style.position = 'absolute';
	obj.style.zIndex = 99;
	obj.style.display = 'none';
	obj.style.bottom = '0px';
	obj.style.left = '100%';
	if ( obj ) {
		obj.style.display = 'inline';
	}
}

function image_hover_close(id) {
	var obj = document.getElementById(id);
	if ( obj ) {
		obj.style.display = 'none';
	}
}