function lotation(t_id,from,to) {
	var from_div_id = "q" + t_id + from;
	var to_div_id = "q" + t_id + to;
	if(document.getElementById(from_div_id) != null && document.getElementById(to_div_id) != null) {
		document.getElementById(from_div_id).style.display = "none";
		document.getElementById(to_div_id).style.display = "";
	} else {
		void(0);
	}
}
function collapse(t_id,type) {
	var div_id = "t" + t_id;
	var btn_div_id = "c" + t_id;
	
	if(document.getElementById(div_id) != null) {
		if(type == 1) {
			document.getElementById(btn_div_id + "1").className = "on";
			document.getElementById(btn_div_id + "0").className = "";
			document.getElementById(div_id).style.display = "block";
		} else {
			document.getElementById(btn_div_id + "0").className = "on";
			document.getElementById(btn_div_id + "1").className = "";
			document.getElementById(div_id).style.display = "none";
		}
	} else {
		void(0);
	}
}
function getClippingCount() {
	var cookie_aray,cookie_val,i,clipping_count;
	cookie_array = document.cookie.split(";");
	clipping_count = 0;
	if(cookie_array.length > 0) {
		for(i = 0; i < cookie_array.length; i++) {
			cookie_val = cookie_array[i].split("=");
			if(cookie_val[0].search(/^ {0,1}trm_clip$/i) != -1) {
				clipping_count = unescape(cookie_val[1]).split(",").length;
				break;
			}
	    }
	}
	document.write(clipping_count);
}

