function Pop(url,width,height,status,toolbar,scrollbars) {
	if (width == null) w = 600; else w = width;
	if (height == null) h = 400; else h = height;
	if (status == null) st = 0; else st = status;
	if (toolbar == null) tb = 0; else tb = toolbar;
	if (scrollbars == null)sb = 1; else sb = scrollbars;
	open(url,"_blank","status="+st+",toolbar="+tb+",scrollbars="+sb+",resizable=1,width="+w+",height="+h+",screenX=30,screenY=30,left=30,top=30");
}

var mouse_x;
var mouse_y;

document.onmousemove = position;

function position(event) {
	mouse_x = event.pageX;
	mouse_y = event.pageY;
}

function MM_findObj(n, d) {
	var p,i,x;  
	if(!d) {
		d = document; 
	}
	if((p = n.indexOf("?")) > 0 && parent.frames.length) {
		d = parent.frames[n.substring(p+1)].document; 
		n = n.substring(0,p);
	}
	if(!(x = d[n]) && d.all) {
		x=d.all[n]; 
	} 
	for (i=0;!x && i < d.forms.length; i++) {
		x = d.forms[i][n];
	}
	for(i=0; !x && d.layers && i<d.layers.length;i++) {
		x = MM_findObj(n,d.layers[i].document);
	}
	if(!x && document.getElementById) {
		x = document.getElementById(n);
	}
	return x;
}

function show_help(id) {
	obj = MM_findObj(id);
	obj.style.top = mouse_y - 15;
	obj.style.left = mouse_x + 20;
	obj.style.visibility = 'visible';
}

function clear_help(id) {
	obj = MM_findObj(id);
	obj.style.visibility = 'hidden';
}


var detail_win = null;

function show_detail(url) {
    detail_win=window.open(url,'detail','resizable=yes,scrollbars=yes,left=100,top=0,width=520,height=730');
    detail_win.focus();
}
