	/*
		mirror_script.js
		20100802
		¹Ì·¯»çÀÌÆ® script
		OpenRightMenu_3rd
	*/

	//20060307 ÇÁ¸°ÅÍ Á¤º¸¸¦ Post ¹æ½ÄÀ¸·Î ³Ñ±è
	function PrintPage(host)
	{
		if (!host) {
			host = "http://mrr.taein.co.kr";
		}
		window.open("","myPrint","menubar=no,scrollbars=no,width=750,height=680,top=100,left=100");
		document.myPrint.target = "myPrint";
        document.myPrint.action = host+"/mirror/auction/popup/print.php";
        document.myPrint.submit();
	}

	function Daum_PrintPage(host)
	{
		if (!host) {
			host = "http://auction.realestate.daum.net";
		}
		window.open("","myPrint","menubar=no,scrollbars=no,width=750,height=680,top=100,left=100");
		document.myPrint.target = "myPrint";
		document.myPrint.action = host+"/popup/auction/popup/print.php";
		document.myPrint.submit();
	}


	//20060403
	function ModifyPayTime()
	{
		//alert("4¿ù 1ÀÏºÎÅÍ 1ÀÏ ÀÌ¿ë½Ã°£ÀÌ 12½Ã°£À¸·Î º¯°æµÇ¾ú½À´Ï´Ù.\n\n´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
	}

	//ÆË¾÷ ¸Þ´º
	function OpenRightMenu_old(val)
	{
		if (val == "99") {
			alert("¾ø´Â Á¤º¸ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
			return;
		}

		window.open("", "rightmenu1", "menubar=no, titlebar=no, scrollbars=no, resizable=no, Width=1000, Height=700, top=0, left=0");
		document.rightmenu.action = "http://mrr.taein.co.kr/mirror/auction/view_rightmenu.php?val="+val;
		document.rightmenu.target = "rightmenu1";
		document.rightmenu.method = "post";
		document.rightmenu.submit();
	}

	//ÆË¾÷¸Þ´º 20061020
	function OpenRightMenu_popup(host,val)
	{
		if (!host) {
			host = "http://mrr.taein.co.kr";
		}
		if (val == "99") {
			alert("¾ø´Â Á¤º¸ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
			return;
		}

		window.open("", "rightmenu1", "menubar=no, titlebar=no, scrollbars=no, resizable=no, Width=1000, Height=700, top=0, left=0");
		document.rightmenu.action = host+"/mirror/auction/popup/view_rightmenu_popup.php?val="+val;
		document.rightmenu.target = "rightmenu1";
		document.rightmenu.method = "post";
		document.rightmenu.submit();
	}

	//ÆË¾÷¸Þ´º
	function OpenRightMenu(host,val)
	{
		if (!host) {
			host = "http://mrr.taein.co.kr";
		}
		if (val == "99") {
			alert("¾ø´Â Á¤º¸ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
			return;
		}

		window.open("", "rightmenu1", "menubar=no, titlebar=no, scrollbars=no, resizable=yes, Width=1000, Height=700, top=0, left=0");
		document.rightmenu.action = host+"/mirror/auction/popup/view_rightmenu.php?val="+val;
		document.rightmenu.target = "rightmenu1";
		document.rightmenu.method = "post";
		document.rightmenu.submit();
	}

	//ÆË¾÷ ¸Þ´º tmp
	function OpenRightMenu_tmp(val)
	{
		if (val == "99") {
			alert("¾ø´Â Á¤º¸ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
			return;
		}

		window.open("", "rightmenu1", "menubar=no, titlebar=no, scrollbars=no, resizable=no, Width=1000, Height=700, top=0, left=0");
		document.rightmenu.action = "http://mrr.taein.co.kr/mirror/auction/popup/view_rightmenu_tmp.php?val="+val;
		document.rightmenu.target = "rightmenu1";
		document.rightmenu.method = "post";
		document.rightmenu.submit();
	}


	//ÆË¾÷¸Þ´º 20100315
	function OpenRightMenu_2nd(host, val, sve, prm)
	{
		if (!host) {
			host = "http://mrr.taein.co.kr";
		}
		if (val == "99") {
			alert("¾ø´Â Á¤º¸ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
			return;
		}
		if (sve == "photo") {
			document.rightmenu.direct_photoopen.value = prm;
		}
		else {
			document.rightmenu.direct_photoopen.value = "";
		}
		if (sve == "photo_gubun") {
			document.rightmenu.photo_gubun.value = prm;
		}
		else {
			document.rightmenu.photo_gubun.value = "";
		}

		window.open("", "rightmenu1", "menubar=no, titlebar=no, scrollbars=no, resizable=yes, status=yes, Width=1000, Height=700, top=0, left=0");
		document.rightmenu.action = host+"/mirror/auction/popup_2nd/view_rightmenu.php?val="+val;
		document.rightmenu.target = "rightmenu1";
		document.rightmenu.method = "post";
		document.rightmenu.submit();
	}

	//ÆËÆã¸Þ´º 20100705
	function daumOpenRightMenu(host, val, sve, prm)
	{
		if (!host) {
			host = "http://auction.realestate.daum.net/";
		}
		if (val == "99") {
			alert("¾ø´Â Á¤º¸ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
			return;
		}
		if (sve == "photo") {
			document.rightmenu.direct_photoopen.value = prm;
		}
		else {
			document.rightmenu.direct_photoopen.value = "";
		}
		if (sve == "photo_gubun") {
			document.rightmenu.photo_gubun.value = prm;
		}
		else {
			document.rightmenu.photo_gubun.value = "";
		}

		window.open("", "rightmenu1", "menubar=no, titlebar=no, scrollbars=no, resizable=yes, status=yes, Width=1000, Height=700, top=0, left=0");
		document.rightmenu.action = host+"/popup/auction_2nd/view_rightmenu.php?val="+val;
		document.rightmenu.target = "rightmenu1";
		document.rightmenu.method = "post";
		document.rightmenu.submit();
	}

	//ºÎ°¡¼­ºñ½º 20100802
	function OpenRightMenu_3rd(host, val, page, prm, frame, att)
	{
		var frm = document.rightmenu;
		var strPage, strFrame, strAtt;

		if (val == "99") {
			alert("¾ø´Â Á¤º¸ÀÔ´Ï´Ù. ´Ù½Ã È®ÀÎ¹Ù¶ø´Ï´Ù.");
			return;
		}

		if (host) {
			host = "http://"+host;
		}
		else {
			host = "http://mrr.taein.co.kr";
		}
		if (page) {
			strPage = page;
		}
		else {
			strPage = "/auction/popup/view_rightmenu.php?val="+val;
		}
		if (frame) {
			strFrame = frame;
		}
		else {
			strFrame = "rightmenu1";
		}
		if (att) {
			strAtt = att;
		}
		else {
			strAtt = "scrollbars=no,resizable=no,status=no,width=1000,height=700,top=0,left=0";
		}
		frm.var_prm.value = prm; //º¯¼ö=°ª|º¯¼ö=°ª|

		window.open("",strFrame,strAtt);
		frm.action = host+strPage;
		frm.target = strFrame;
		frm.method = "post";
		frm.submit();
	}


	//ÇöÀç Brower »óÅÂ¹Ù ³»¿ë
	function WinStatus()
	{
	   window.status = "";
	   setTimeout("WinStatus()", 0);
	}

	//¹°°Ç »çÁø ÆË¾÷
	function ImgOpen2(imgfile, width_size, height_size)
	{
		att='status=no, resizable=yes, toolbar=no, scrollbars=no, width='+width_size+',height='+height_size+',top=100,left=200';
  		window.open("http://mrr.taein.co.kr/auction/image_open.html?image="+imgfile+"&width="+width_size+"&height="+height_size,"popup",att);
	}

	//°æ¸Å»ó´ã Áú¹®¿¡ ´ëÇÑ ÀÇ°ß Á¡¼öÁÖ±â
	function getAnswerPoint(no,ans_no,page)
	{
		var frm = document.ans_modify;
		var cnt = 0;

		for (i=0; i<eval("frm.ans_point"+ans_no).length; i++)
		{
			if (eval("frm.ans_point"+ans_no+"[i]").checked) {
				location.href = page+"?mode=point&parent="+no+"&idx="+ans_no+"&pnt="+eval("frm.ans_point"+ans_no+"[i]").value;
			}
			else
				cnt++;
		}

		if (cnt >= 5) {
			alert("Á¡¼ö¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.");
			return;
		}
	}

	//ÆË¾÷¿­±â
	function open_page(url, page_name, state)
	{
		window.open(url, page_name, state);
	}


	//ÇÑÀÚ¸´¼ö¸¦ µÎÀÚ¸®·Î º¯°æ
	function AddTwoForce(val)
	{
		if (val < 10)
			val = "0" + String(val);

		return val;
	}

	//ÀÔÂûÀÏÀÚ ºñ±³(3°³¿ù)
	function CompBidDate(start_year, start_month, start_day, end_year, end_month, end_day)
	{
		var msg;

		comp_start = new Date(start_year, start_month, start_day);
		comp_end = new Date(end_year, Number(end_month)-3, end_day);

		start_year = String(comp_start.getYear());
		start_month = String(AddTwoForce(comp_start.getMonth()));
		start_day = String(AddTwoForce(comp_start.getDate()));

		end_year = String(comp_end.getYear());
		end_month = String(AddTwoForce(comp_end.getMonth()));
		end_day = String(AddTwoForce(comp_end.getDate()));

		if (Number(end_year + end_month + end_day) > Number(start_year + start_month + start_day)) {
			msg = "ÀÔÂûÀÏÀÚ °Ë»öÀº 3°³¿ù ´ÜÀ§·Î¸¸ °¡´ÉÇÕ´Ï´Ù.";
		}
		else {
			msg = "";
		}

		return msg;
	}

	//°æ¸Å °¡¸ÍÁ¡ º¸±â
	function WinFrcInfo(fidx,fuid)
	{
		window.open("http://www.pataein.com/auction/popup/intro.php?fidx="+fidx+"&fuid="+fuid,"refund1","menubar=no,titlebar=no,scrollbars=no,resizable=no,Width=500,Height=295,Top=0,Left=0");
	}


	//ÇØ´çÁÂÇ¥¿¡ ¸¶¿ì½º Æ÷ÀÎÅÍ°¡ Á¢±Ù½Ã  Bubble Help¸¦ º¸¿©ÁÖ´Â ÇÔ¼ö
	function showChipHelp(cName,x,y)
	{
		var offX = offY = 5;
		if (document.layers) {
			chipOBJ = document.layers[cName];
		}
		if (document.all) {
			chipOBJ = document.all[cName].style;
		}
		if (chipOBJ.visibility.charAt(0) == "v") {
			return;
		}
		if (document.all) {
			offX = document.body.scrollLeft;
			offY = document.body.scrollTop;
		}
		chipOBJ.visibility = "visible";
		//chipOBJ.left = x + offX + 10;
		//chipOBJ.top  = y + offY + 10;
		chipOBJ.left = x + 10;
		chipOBJ.top  = y + 10;
	}

	//ÇØ´çÁÂÇ¥¿¡ ¸¶¿ì½º Æ÷ÀÎÅÍ°¡ Á¢±Ù½Ã  Bubble Help¸¦ º¸¿©ÁÖ´Â ÇÔ¼ö ½ºÅ©·Ñ ÀÌµ¿½Ã
	function showChipHelp_sub(cName,x,y)
	{
		var offX = offY = 5;
		if (document.layers) {
			chipOBJ = document.layers[cName];
		}
		if (document.all) {
			chipOBJ = document.all[cName].style;
		}
		if (chipOBJ.visibility.charAt(0) == "v") {
			return;
		}
		if (document.all) {
			offX = document.body.scrollLeft;
			offY = document.body.scrollTop;
		}
		chipOBJ.visibility = "visible";
		chipOBJ.left = x + offX + 10;
		chipOBJ.top  = y + offY + 10;
		//chipOBJ.left = x + 10;
		//chipOBJ.top  = y + 10;
	}


	//ÇØ´çÁÂÇ¥¿¡ ¸¶¿ì½º Æ÷ÀÎÅÍ°¡  ¶°³¯¶§ Bubble Help¸¦ Áö¿öÁÖ´Â ÇÔ¼ö
	function hideChipHelp(cName)
	{
		if (document.all)    document.all[cName].style.visibility = "hidden";
		if (document.layers) document.layers[cName].visibility    = "hidden";
	}

   //Áß°³¾÷¼Ò ¸Å¹°º¸±â
   function open_maemul(maeno)
   {
      var url, state;
      state='status=no, resizable=no, toolbar=no,scrollbars=yes,top=0,left=0,width=660,height=750';
      url = 'http://mrr.taein.co.kr/mirror/gong/brkoffer_view.php?maeno='+maeno;

      window.open(url, 'MaemulPop', state);
   }



	//------------------------------------------------------------------------- Æ¯Á¤ »çÀÌÆ®·Î ÀÚµ¿ ·Î±×°¡ °¡´ÉÇÑ ÆäÀÌÁö·Î ÀÌµ¿ 20100409
	function mrrMovePage(host, page, from)
	{
		var currdate, url;
		if (page) {
			currdate = StrCurrentDate();
			url = host+"/member/mrrlogin_end.php?tim="+currdate+"&page="+page+"&from="+from;
			window.open(url);
		}
	}


   /*
	»ç¿ë ÁßÀÎ »çÀÌÆ®
	1.taein.unitel.co.kr
	2.landauction.nate.com
	3.land5.naver.com

	1.auction.realestate.daum.net
	2.taein.estate.donga.com
	3.taein.drapt.com
	4.taein.garosu.com
	5.auction.hankyung.com
	6.kb.taein.co.kr
	7.kiupbank.taein.co.kr
	8.taein.paran.com
	9.taein.mk.co.kr
	10.land.naver.com/auction
	11.auction.house.findall.co.kr
	12.taein.shinsegae.com
	13.simmani.taein.co.kr
	14.auction.ten.co.kr
	15.cafe.ten.co.kr


	*/
