	function show_poll_result()
	{
		var windowWidth = 450;
		var windowHeight = 350;

		var x = screen.width/2 - windowWidth/2;
		var y = screen.height/2 - windowHeight/2;
		
		var tar = "top=" + y + ", left=" + x + ", width=" + windowWidth + ", height=" + windowHeight + ", scrollbars=no, resizable=yes, status=no";
		window.open("poll/poll_vote_show.php3", "poll_show", tar);
	}

	function vote_poll()
	{
		var windowWidth = 450;
		var windowHeight = 350;

		var x = screen.width/2 - windowWidth/2;
		var y = screen.height/2 - windowHeight/2;
		
		var tar = "top=" + y + ", left=" + x + ", width=" + windowWidth + ", height=" + windowHeight + ", scrollbars=no, resizable=yes, status=no";

		var voteWin = window.open("", "pollVoteWin", tar);
		document.poll.target = "pollVoteWin";
		document.poll.submit();
	}

	function go_hill_news_read(no)
	{
		location.href = "news/news.html?no=" + no + "&mode=list&offset=0&how=read";
	}

	function go_hill_news_list()
	{
		location.href = "news/news.html?how=list";
	}

	function go_news_brie_read(no)
	{
		location.href = "brie/brie.html?no=" + no + "&mode=list&offset=0&how=read";
	}

	function go_news_brie_list()
	{
		location.href = "brie/brie.html?how=list";
	}

	function go_bun_info_popup(url, enc_code, popup_yn)
	{
	  if(popup_yn == "N") {
		location.href = "http://www.dmapt.co.kr/event_counter.php3?enc_code=" + enc_code + "&url=" + url
	  }
	  else {
		if( url == "" )
		{
			location.href = "http://www.gmhill.co.kr/spot/news/news.html?enc_code=" + enc_code;
		}
		else
		{
			// ÆË¾÷Ã¢ÀÇ ±âº» Å©±â
			var windowWidth = 1024;
			var windowHeight = 768;
			// ¿ï»ê±¸¿µÁö±¸ÀÏ¶§¸¸ ÆË¾÷Ã¢ÀÇ Å©±â ¼öÁ¤
			if( enc_code == "788665754ef1d6aa" )
			{
				windowWidth = 1040;
				windowHeight = 700;
			}
			// ÀÏ»ê »ç¸®Çö3Â÷ÀÏ¶§¸¸ ÆË¾÷Ã¢ÀÇ Å©±â ¼öÁ¤
			if( enc_code == "7887b7144ef46e72" )
			{
				windowWidth = 585;
				windowHeight = 600;
			}
			// ÆÄÁÖ±³ÇÏ Áö±¸ÀÏ¶§¸¸ ÆË¾÷Ã¢ÀÇ Å©±â ¼öÁ¤
			if( enc_code == "7887b26b4ef471c9" )
			{
			  //windowWidth = 585;
				//windowHeight = 600;

				var windowWidth = 1000;
				var windowHeight = 700;
			}
			// ÀÏ»ê ¹é¼®¿ª ±Â¸ð´×Å¸¿öÀÏ¶§ ÆË¾÷Ã¢ÀÇ Å©±â ¼öÁ¤
			if( enc_code == "7887b0b04ef4740e" )
			{
				windowWidth = 800;
				windowHeight = 525;
			}
			// ÀÏ»ê ¹é¼®¿ª ±Â¸ð´×Å¸¿öÀÏ¶§ ÆË¾÷Ã¢ÀÇ Å©±â ¼öÁ¤
			if( enc_code == "19e46f071844a0b9" )
			{
				windowWidth = 790;
				windowHeight = 455;
			}
			
			// ºÀ´ãÀÏ¶§ ÆË¾÷Ã¢ÀÇ Å©±â ¼öÁ¤
			if( enc_code == "788668784ef1e3ad" )
			{
				windowWidth = 1016;
				windowHeight = 770;
			}

			var x = screen.width/2 - windowWidth/2;
			var y = screen.height/2 - windowHeight/2-100;
			
			var tar = "top=" + y + ", left=" + x + ", width=" + windowWidth + ", height=" + windowHeight + ", scrollbars=1, resizable=1";
			
			if(url.substring(0, 7) == "http://"){
				window.open("http://www.dmapt.co.kr/event_counter.php3?enc_code=" + enc_code + "&url=" + url, "htmlWin");
			}else{
				window.open("http://www.dmapt.co.kr/event_counter.php3?enc_code=" + enc_code + "&url=" + url, "htmlWin", tar);
			}
			
			//window.open("http://www.dmapt.co.kr/event_counter.php3?enc_code=" + enc_code + "&url=" + url, "htmlWin", tar);
			//window.open("http://www.dmapt.co.kr/main_upload/" + url, "htmlWin", tar);
		}
	  }
	}

	function go_apt_main()
	{
		var windowWidth = 800;
		var windowHeight = 600;

		var x = screen.width/2 - windowWidth/2;
		var y = screen.height/2 - windowHeight/2-100;
		
		var tar = "top=" + y + ", left=" + x + ", width=" + windowWidth + ", height=" + windowHeight + ", scrollbars=1, resizable=1, status=1,";
		var tar = tar + "location=1, toolbar=1, menubar=1";

		var d = new Date();
		winName = d.getTime();

		window.open("jump_brother_site.php3?where=apt", winName, tar);

	}

	function go_top_main()
	{
		var windowWidth = 800;
		var windowHeight = 600;

		var x = screen.width/2 - windowWidth/2;
		var y = screen.height/2 - windowHeight/2-100;
		
		var tar = "top=" + y + ", left=" + x + ", width=" + windowWidth + ", height=" + windowHeight + ", scrollbars=1, resizable=1, status=1,";
		var tar = tar + "location=1, toolbar=1, menubar=1";

		var d = new Date();
		winName = d.getTime();

		window.open("jump_brother_site.php3?where=top", winName, tar);
	}

	function go_search()
	{
		location.href="contract/pay_certificate.php3" ;
	}

	function go_logout()
	{
		location.href = "logout.php3" ;
	}

	function go_spot_guide( arg )
	{
		if( arg == "1" )
			location.href = "spot/news/news.html";
		else if( arg == "2" )
			location.href = "spot/news/spot_menu_call.php3?menuName=guide";
		else if( arg == "3" )
			location.href = "spot/news/spot_menu_call.php3?menuName=process";
		else if( arg == "4" )
		{
			//alert("ÁË¼ÛÇÕ´Ï´Ù. »çÀÌ¹öÄ«´Þ·Î±×¸¦ ÁØºñÁß¿¡ ÀÖ½À´Ï´Ù");
			//return;
			location.href = "spot/news/spot_menu_call.php3?menuName=conte";
		}
	}
	

function popwindow(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,'',"toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
}

function popwindow2(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,'',"toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
}


// ¸ÞÀÎ - ÅÇ Å¬¸¯ ³»¿ë º¸¿©ÁÖ±â(3°³)
		function menu3(index) {
			if (navigator.userAgent.indexOf("MSIE") != -1) {
				if (index == 1) {
					t1.style.display = "";
					t2.style.display = "none";				
					t3.style.display = "none";			
				} 
				
				
			    else if (index == 2) {
					t1.style.display = "none";
					t2.style.display = "";
					t3.style.display = "none";						
			   }
			   
			    else if (index == 3) {
					t1.style.display = "none";
					t2.style.display = "none";
					t3.style.display = "";							
			   }					 	   

		}}		