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(no,name) { 
	//À§Ä¡ÁöÁ¤
	//var top = (no*300)+50;
	var left = (no*300);
	
	var imgObj = new Image();
	imgObj.src =  '/popup/image/'+name+'.jpg';
	var openwidth = imgObj.width + 30;
	var openheight = imgObj.height + 70;
	
	var noticeCookie=getCookie(name);  // ÄíÅ°³×ÀÓ ÁöÁ¤
	if (noticeCookie != "no") 
		window.open('/popup/'+name+'.php?name='+name, name ,'width='+openwidth+',height='+openheight+',top='+top+',left='+left); 
		// window.open('ÆË¾÷Ã¢ À¥ÆäÀÌÁö','À©µµ¿ì¸í','width=350,height=400,top=50,left=150'); 
} 

