	function getCookie( name ) {
        var nameOfCookie = name + "=";
        var x = 0;

        while ( x <= document.cookie.length ) {
                var y = (x+nameOfCookie.length);

                if ( document.cookie.substring( x, y ) == nameOfCookie ) {
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                                endOfCookie = document.cookie.length;
                        return unescape( document.cookie.substring( y, endOfCookie ) );
                }

                x = document.cookie.indexOf( " ", x ) + 1;
                if ( x == 0 ) break;
        }

        return "";
	}



	var todayDate = new Date();
	var ty = todayDate.getFullYear();
	var tm = todayDate.getMonth() + 1;
	var td = todayDate.getDate();

	var sty = ty.toString();
	var stm = tm.toString();
	var std = td.toString();

	if (stm.length < 2) stm = "0" + stm;
	if (std.length < 2) std = "0" + std;

	var sday = sty + stm + std;

	var th = todayDate.getHours();
	var tmm = todayDate.getMinutes();
	var sth = th.toString();
	var stmm = tmm.toString();

	if (sth.length < 2) sth = "0" + sth;
	if (stmm.length < 2) stmm = "0" + stmm;

	var scday = sty + stm + std + sth + stmm;



	
	function popupFunction(ck_name, url, wLeft, wTop, scrollYN) {

		
		if ( getCookie( ck_name ) != sday ){
				noticeWindow = window.open(url, '', 'scrollbars='+scrollYN+', left='+ wLeft +', top='+ wTop +', width=320, height=400');
				noticeWindow.opener = self;
		} 
	}

