function show_div( div_id ) {
	if( div_id!="" ) {
		document.getElementById(div_id).style.display = "block";
	}
}

function hide_div( div_id ) {
	if( div_id!="" ) {
		document.getElementById(div_id).style.display = "none";
	}
}

function switch_div( div_show, div_hide ) {
	var div_ary;

	div_ary = div_hide.split(",");
	for( i=0; i<div_ary.length; i++ ) {
		hide_div( div_ary[i] );
	}
	
	div_ary = div_show.split(",");
	for( i=0; i<div_ary.length; i++ ) {
		show_div( div_ary[i] );
	}
}

function switch_border( obj_show, show_bodr_color, show_bodr_style, show_bodr_width, obj_hide, hide_bodr_color, hide_bodr_style, hide_bodr_width ) {
	document.getElementById(obj_show).style.borderColor = show_bodr_color;
	document.getElementById(obj_show).style.borderStyle = show_bodr_style;
	document.getElementById(obj_show).style.borderWidth = show_bodr_width;

	var obj_ary;

	obj_ary = obj_hide.split(",");
	for( i=0; i<obj_ary.length; i++ ) {
		document.getElementById(obj_ary[i]).style.borderColor = hide_bodr_color;
		document.getElementById(obj_ary[i]).style.borderStyle = hide_bodr_style;
		document.getElementById(obj_ary[i]).style.borderWidth = hide_bodr_width;
	}
}

function switch_bg( obj_show, show_bg_img, obj_hide, hide_bg_img ) {
	document.getElementById(obj_show).background = show_bg_img;

	var obj_ary;

	obj_ary = obj_hide.split(",");
	for( i=0; i<obj_ary.length; i++ ) {
		document.getElementById(obj_ary[i]).background = hide_bg_img;
	}
}

function switch_text( obj_show, show_text_color, show_text_weight, obj_hide, hide_text_color, hide_text_weight ) {
	document.getElementById(obj_show).style.color = show_text_color;
	document.getElementById(obj_show).style.fontWeight = show_text_weight;

	var obj_ary;

	obj_ary = obj_hide.split(",");
	for( i=0; i<obj_ary.length; i++ ) {
		document.getElementById(obj_ary[i]).style.color = hide_text_color;
		document.getElementById(obj_ary[i]).style.fontWeight = hide_text_weight;
	}
}

