function popUpWin(url, win, width, height, options, position) {
	var defaultPos = 20;
	
	if(position == "cs") {
		leftPos = (screen.width) ? (screen.width-width)/2 : defaultPos;
		topPos = (screen.height) ? (screen.height-height)/2 : defaultPos;
	} else if(position == "cw") {
		leftPos = (document.body.clientWidth) ? (document.body.clientWidth-width)/2 : defaultPos;
		topPos = (document.body.clientHeight) ? (document.body.clientHeight-height)/2 : defaultPos;
		leftPos += (window.screenLeft) ? window.screenLeft : window.screenX;
		if(leftPos.toString() == "NaN") {
			leftPos = (screen.width) ? (screen.width-width)/2 : defaultPos;			
		}
		topPos = (topPos < 100) ? 100 : topPos;
	} else {
		leftPos = defaultPos;
		topPos = defaultPos;
	}
	
	options += ',width=' + width + ',height=' + height + ',left=' + leftPos + ',top=' + topPos;
	newWin = window.open(url, win, options);
	newWin.focus();
	
	return newWin;
}

function gotoCurrentCalendar() {
	var months = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
	
	var date = new Date();
	var year = date.getYear();
	var month = date.getMonth();
	var browser = navigator.appName;
	
	if(browser == "Netscape") {
		year = "20" + year.toString().substring(1,3);
	}
	
	location.href=location.href.substring(0, location.href.replace("http://", "").indexOf("/") + 7) + "/news_events-" + year + "-" + months[month] + ".html";
}