function showHide(id, arr) {
	// visibility = document.getElementById(id).style.visibility;
	for(i = 0; i < arr.length; i++) {
		document.getElementById(arr[i]).style.display = 'none';
	}
	document.getElementById(id).style.display = '';
}

function displayMessage(msg) {
	document.getElementById('message_box').style.top = event.clientY+15;
	document.getElementById('message_box').style.left = event.clientX+15;
	document.getElementById('message_box').innerHTML = msg;
	document.getElementById('message_box').style.display = 'block';
}

function init() {
  if (window.Event) {
    document.captureEvents(Event.MOUSEMOVE);
  }
  document.onmousemove = getXY;
}

function getXY(e) {
 	x = (window.Event) ? e.pageX : event.clientX;
 	y = (window.Event) ? e.pageY : event.clientY;
	
	document.getElementById('message_box').style.top = y-20;
	document.getElementById('message_box').style.left = x+20;
}

function popitup(url)
{
	newwindow=window.open(url,'name','height=300,width=400,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}
