var cookieNo = "pop_001";
var cookieNo2 = "pop_002";

function popupNew() {
		url = "/popup/mat_popup_02.html";
		var width=490;
		var height=340;
		var posx=0;
		var posy=0;
		//posx = (screen.width-width)/2-1;
		//posy = (screen.height-height)/2-1;
		position = 'width='+width+',height='+height+',scrollbars=no,top='+posy+',resizable=no,left='+posx;
	//	var openWindow = window.open(url,'MovieWin', position);
	
}

function spec_pop() {
		url = "http://www.mat.co.kr/popup/mat_popup_02.html";
		var width=370;
		var height=460;
		var posx=100;
		var posy=0;
		//posx = (screen.width-width)/2-1;
		//posy = (screen.height-height)/2-1;
		position = 'width='+width+',height='+height+',scrollbars=no,top='+posy+',resizable=no,left='+posx;
		var openWindow = window.open(url,'MovieWin2', position);
	
}


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 "";
}




if (getCookie("matpopup") != cookieNo) {
	//popupNew();

}


/* 2005-6-13
if (getCookie("matpopup2") != cookieNo2) {
	spec_pop();
}
*/

