function setBackUrl(formObj) {
	if (formObj && formObj.backurl) {
		formObj.backurl.value=location.href;
	}
}

// jQuery
function view_child_navi (parentcat) {
	jQuery("#subnav a").css({'color':'#fff'});
	jQuery("#childnav ul").hide(0);
	if (parentcat != "" && jQuery("#childnav_" + parentcat).text() != "") {
		jQuery("#parentnav_" + parentcat + " a").css({'color':'#f00'});
		jQuery("#childnav_" + parentcat).fadeIn(500);
	}
}

function view_side_navi (parentcat) {
	jQuery(".mleft-sub-menu").each(function(){
		if (this.id == "sidemenu_" + parentcat) {
			if (jQuery("#"+this.id).attr("visible") == "1") {
				jQuery("#"+this.id).fadeOut(100);
				jQuery("#"+this.id).attr("visible", "0");
			} else {
				jQuery("#"+this.id).fadeIn(500);
				jQuery("#"+this.id).attr("visible", "1");
			}
		} else {
			jQuery("#"+this.id).hide();
			jQuery("#"+this.id).attr("visible", "0");
		}
	});
}





