function getCookie(name) {
	var Found = false;
	var start, end;
	var i = 0;

	while(i <= document.cookie.length) {
		start = i;
		end = start + name.length;

		if(document.cookie.substring(start, end) == name) {
			Found = true;
			break;
		}
		i++;
	}

	if(Found == true) { 
		start = end + 1;
		end = document.cookie.indexOf(";", start);

		if(end < start)
			end = document.cookie.length 

		return document.cookie.substring(start, end); 
	} 
	return "";
} 

function openPopup(w, h) { 
	var noticeCookie=getCookie("notice_20100414");

	if (noticeCookie != "no")
		window.open('../../_html/events/20100414_popup.html', 'pop', 'width='+w+', height='+h+',top=50,left=100');
}

function openPopup2(w, h) { 
	var noticeCookie=getCookie("event_20081204");

	if (noticeCookie != "no")
		window.open('../../_html/events/20081204_popup.html', 'pop2', 'width='+w+', height='+h+',top=60,left=110');
}

function openPopup3(w, h) { 
	var noticeCookie=getCookie("notice_20080814");

	if (noticeCookie != "no")
		window.open('../../_html/events/20080814_notice.html', 'sys', 'width='+w+', height='+h+',top=70,left=120');
}

function openPopup4(w, h) { 
	var noticeCookie=getCookie("system_200806_01");

	if (noticeCookie != "no")
		window.open('../../_html/events/20080612_notice.html', 'sys', 'width='+w+', height='+h+',top=60,left=60');
}

//openPopup(350, 355);
//openPopup2(350, 384);
//openPopup3(350, 355);
//openPopup4(350, 355);
