<!--
//Open filarchive in right hand corner
function openRight(url, name, pos) {
	
	if (window.screen) {
		var hig, wid, ah, aw;
		
		if(pos == 'right') {
			hig=600; wid=550; ah=0;
			aw = screen.availWidth - wid - 10;
		}else if (pos == 'center'){
			hig=600; wid=800; ah=100;
			aw = 150;
		}else{
			return;
		}
		var str = "scrollbars,left=" + aw;
		str += ",screenX=" + aw;
		str += ",top=" + ah;
		str += ",screenY=" + ah;

		str += ",height=" + hig;
		str += ",innerHeight=" + hig;
		str += ",width=" + wid;
		str += ",innerWidth=" + wid;

		newWin = window.open(url, name, str);
		newWin.focus();
	}			
}

function deleteConfirm(message) {
	var svar;
	
	svar = confirm(message);
	return svar;
}

function showTodayInfo (txt, event) {
	var todayInfoDiv = document.getElementById("showDayInfo");
	todayInfoDiv.innerHTML = txt;
	todayInfoDiv.style.display = 'block';
	if (window.event) {
		var cursor = getPosition(window.event);
		todayInfoDiv.style.top  = cursor.y + 'px';
		todayInfoDiv.style.left = cursor.x + 'px';
	} else {
		var cursor = getPosition(event);
		todayInfoDiv.style.top  = cursor.y + 'px';
		todayInfoDiv.style.left = cursor.x + 'px';
	}
}


function hideTodayInfo (txt) {
	var todayInfoDiv = document.getElementById("showDayInfo");
	todayInfoDiv.innerHTML = '';
	todayInfoDiv.style.display = 'none';
}

function getPosition(e) {
    e = e || window.event;
    var cursor = {x:0, y:0};
    if (e.pageX || e.pageY) {
        cursor.x = e.pageX;
        cursor.y = e.pageY;
    } 
    else {
        cursor.x = e.clientX + 
            (document.documentElement.scrollLeft || 
            document.body.scrollLeft) - 
            document.documentElement.clientLeft;
        cursor.y = e.clientY + 
            (document.documentElement.scrollTop || 
            document.body.scrollTop) - 
            document.documentElement.clientTop;
    }
    cursor.y += 25;
		cursor.x -= 142;
		return cursor;
}
	//-->

