
function jsJump(r, a, s) {
	surl = 'index.php?rub='+r;
	surl+= '&aid='+a;
	surl+= '&spe='+s;
	surl+= '&sid='+document.getElementById('sid').value;
	window.location.href = surl;
}

function sub_show(i){
	j = 1;
	while (obj = window.document.getElementById('sub'+j)) {
		obj.className = 'sub_hide';
		j++;
	}
	obj = window.document.getElementById('sub'+i);
	if ( obj ) obj.className = 'sub_show';
	jsCssHeightWrkaround();
}

function getDoc(id, checkstr, Aevent) {
	var globalEvent = Aevent ? Aevent : window.event;
	url = 'getDoc.php?i='+id+'&checkstr='+checkstr;
	window.open(url,'ppDoc','width=300,height=300,scrollbars=1,resizable=1,top='+globalEvent.clientY+'left='+globalEvent.clientX);
}

function jsCssHeightWrkaround(){
	dv1 = document.getElementById('menu_respire_wrap');
	dv2 = document.getElementById('content_wrap');
	
	if ( dv1 && dv2 ) {
		h1 = dv1.offsetHeight;
		h2 = dv2.offsetHeight;
		hx = Math.max(h1,h2);
			dv1.style.height = hx;
		if ( document.all ) {
			dv1.style.height = hx;
			dv2.style.height = hx;
			dv3 = document.getElementById('content_right');
			if ( dv3 ) dv3.style.height = hx;
		} else {
			dv1.style.height = hx+"px;";
			dv2.style.height = hx+"px;";
			dv3 = document.getElementById('content_right');
			if ( dv3 ) dv3.style.height = hx+"px;";
		}
	} else {
		setTimeout('jsCssHeightWrkaround();',500);
	}
}

setTimeout('jsCssHeightWrkaround();',500);