
document.write(	'<table width="100%" border="0" cellpadding="0" cellspacing="0" id=tb_storage>');
document.write(	'<tr><td align=center bgcolor="211b1b">');
document.write(	'<table border="0" cellpadding="0" cellspacing="0">');
document.write(	'<tr>');

document.write(	'<td width="7" background="http://pics2.gundamshop.co.kr/home/btm/bg_q_menu_1.gif">&nbsp;</td>');
document.write(	'<td width="107"><a href="javascript://" onClick="getOpen_Storage(1)"><img id="strg_tabbt1" src="http://pics2.gundamshop.co.kr/home/btm/bt_q_01.gif" width="107" height="30"></td>');
document.write(	'<td width="107"><a href="javascript://" onClick="getOpen_Storage(2)"><img id="strg_tabbt2" src="http://pics2.gundamshop.co.kr/home/btm/bt_q_02.gif" width="107" height="30"></td>');
document.write(	'<td width="107"><a href="javascript://" onClick="getOpen_Storage(3)"><img id="strg_tabbt3" src="http://pics2.gundamshop.co.kr/home/btm/bt_q_03.gif" width="107" height="30"></td>');
document.write(	'<td width="107"><a href="javascript://" onClick="getOpen_Storage(4)"><img id="strg_tabbt4" src="http://pics2.gundamshop.co.kr/home/btm/bt_q_04.gif" width="107" height="30"></td>');
document.write(	'<td width="379" align="center" background="http://pics2.gundamshop.co.kr/home/btm/bg_q_search.gif">');
document.write(	'  <table width="347" border="0" cellspacing="0" cellpadding="0">');
document.write(	'  <form name="storageSearchForm" action="'+HttpDomain+'/search/main.html">');
document.write(	'    <tr>');
document.write(	'      <td width="60" class="ffffff_11"><img src="http://pics2.gundamshop.co.kr/home/btm/tx_coupon.gif" width="22" height="13" align="absmiddle"> '+number_format(tx_coupon)+'°³ </td>');
document.write(	'      <td width="100" class="ffffff_11"><img src="http://pics2.gundamshop.co.kr/home/btm/tx_save.gif" width="30" height="13" align="absmiddle"> '+number_format(tx_point)+'¿ø</td>');
document.write(	'      <td>');
document.write(	'      <input name="key" type="text" size="23" maxlength=30> ');
document.write(	'      <input type=image style=border:0 src="http://pics2.gundamshop.co.kr/home/btm/bt_search.gif" align="absmiddle">                      </td>');
document.write(	'    </tr>');
document.write(	'  </form>');
document.write(	'  </table>');
document.write(	'</td>');
document.write(	'<td width="103"><a href=#top><img alt="Open" id="strg_bt1" src="http://pics2.gundamshop.co.kr/home/btm/bt_q_top.gif" width="52" height="30"></a><span id="strg_layer"><a href="javascript:storage_open()"><img alt="Open" id="strg_bt1" src="http://pics2.gundamshop.co.kr/home/btm/bt_q_open.gif" width="51" height="30"></a></span></td>');

// ÈñÁØÃß°¡ - ´Ý±â¹öÆ°
document.write(	'<td>&nbsp<A href=#null onclick=storage_end() title="Äü¸Þ´º Á¾·á"><font color=gray style="font-size:11px; font-family:µ¸¿ò">[¡¿]Á¾·á</a></td>');

document.write(	'</tr>');
document.write(	'</table>');
document.write(	'</tr>');
document.write(	'</table>');


document.write(	'<div id="storagebox1" style="display:none;">');
document.write(	'</div>');
document.write(	'');



//********* ÈñÁØÃß°¡ - ½ºÅä¸®Áö ¾ø¾Ö±â
function storage_end() {
	result = confirm("¸¶ÀÌÆäÀÌÁö ¸Þ´º¿¡¼­µµ Àå¹Ù±¸´Ï¸¦ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.\n\n(ÀçÁ¢¼Ó ¶§ ±îÁö Äü¸Þ´º ¾ÆÀÌÄÜÀ» Á¾·áÇÕ´Ï´Ù.)")
	if(result) storage_end2()
	}
function storage_end2() {
	tb_storage.style.display = "none"
	storagebox1.style.display = "none"
	layStorage.style.display = "none"
	setCookie("storage_show","x")
	}
storage_show = getCookie("storage_show")
if(storage_show=="x") storage_end2()

if(navigator.appVersion.indexOf("MSIE")==-1) storage_end2()	// ÀÍ½ºÇÃ·¯ ¾Æ´Ï¸é ½ÇÇàÁßÁö
//********************




//Àå¹Ù±¸´Ï ´ã±â
function wishCart(fm)
{
	var cnt = 0;
	var strValue = "";
	var item = document.getElementsByName("Code");
	var userid = fm.userid.value

		/*
	if(!userid || userid.length <= 0 || userid == 'deleted')
	{
		alert("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä");
		topnaviLogin(escape(docuURL))
		return false;
	}*/

	for (var i = 0 ; i < item.length ; i++)
	{
		if(item[i].checked == true)
		{
			cnt = cnt + 1;
			strValue += "," + item[i].value;
		}
	}
	if(cnt <= 0)
	{
		alert("Àå¹Ù±¸´Ï¿¡ ´ãÀ¸½Ç »óÇ°À» ¼±ÅÃÇØ ÁÖ¼¼¿ä");
		return false;
	}

		fm.mode2.value = "CARTPASS";
		fm.strValue.value = strValue;
		fm.target = "hiddeniframe";
		fm.action = HttpDomain + "/html/storage/Cart_Pass.html?ret_url=" + HttpDomain + "/html/storage/CartList.html";
		fm.method = "POST";
		fm.submit();

}

//Âò´ã±â
function insertZzim(fm)
{
	var cnt = 0;
	var strValue = "";
	var item = document.getElementsByName("Code");
	var userid = fm.userid.value
	if(!userid || userid.length <= 0 || userid == 'deleted')
	{
		alert("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä");
		topnaviLogin(escape(docuURL))
		return false;
	}

	for (var i = 0 ; i < item.length ; i++)
	{
		if(item[i].checked == true)
		{
			cnt = cnt + 1;
			strValue += "," + item[i].value;
		}
	}
	if(cnt <= 0)
	{
		alert("´ãÀ¸½Ç »óÇ°À» ¼±ÅÃÇØ ÁÖ¼¼¿ä");
		return false;
	}

		fm.mode2.value = "ZZIMPASS";
		fm.strValue.value = strValue;
		fm.target = "hiddeniframe";
		fm.action = HttpDomain + "/html/storage/Zzim_Pass.html";
		fm.method = "POST";
		fm.submit();

}

//ÂòÀ¸·Î ÀÌµ¿
function goZzim(fm)
{
	var userid = fm.userid.value
	if(!userid || userid.length <= 0 || userid == 'deleted')
	{
		alert("·Î±×ÀÎ ÈÄ ÀÌ¿ëÇØ ÁÖ¼¼¿ä");
		topnaviLogin(escape(docuURL))
		false;
	}

}

//ÀüÃ¼¼±ÅÃ
function checkAll()
{
	var cnt = 0;
	var strValue = "";
	var item = document.getElementsByName("Code");

	for (var i = 0 ; i < item.length ; i++)
	{
		if(item[i].checked == true)
		{
			item[i].checked = false;
		}
		else
		{
			item[i].checked = true;
		}
	}

}

//Âò»èÁ¦
function ZzimDelete(fm)
{
	var cnt = 0;
	var strValue = "";
	var item = document.getElementsByName("Code");

	for (var i = 0 ; i < item.length ; i++)
	{
		if(item[i].checked == true)
		{
			cnt = cnt + 1;
			strValue += "," + item[i].value;
		}
	}

	if( cnt > 0 && confirm(cnt + "°³ÀÇ »óÇ°À» Âò¸ñ·Ï¿¡¼­ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î? ") )
	{

		fm.mode2.value = "WISHDELETEPASS";
		fm.strValue.value = strValue;
		fm.target = "hiddeniframe";
		fm.action = HappyDomain + "/shop/wishList_Pass.html?ret_url=" + HttpDomain + "/html/storage/Zzim.html";
		fm.method = "POST";
		fm.submit();

	}

}

//¿À´Ãº»»óÇ°»èÁ¦
function prdDelete(fm)
{
	var cnt = 0;
	var strValue = "";
	var item = document.getElementsByName("Code");

	for (var i = 0 ; i < item.length ; i++)
	{
		if(item[i].checked == true)
		{
			cnt = cnt + 1;
			strValue += "," + item[i].value;
		}
	}

	if( cnt > 0 && confirm(cnt + "°³ÀÇ »óÇ°À» ¸ñ·Ï¿¡¼­ »èÁ¦ÇÏ½Ã°Ú½À´Ï±î? ") )
	{

		fm.mode2.value = "DELETEPASS";
		fm.strValue.value = strValue;
		fm.target = "hiddeniframe";
		fm.action = HttpDomain + "/html/storage/todayViewGoods.html?ret_url=" + HttpDomain + "/html/storage/todayViewGoods.html";
		fm.method = "POST";
		fm.submit();

	}

}

var sRepeat=null;

function doScrollerIE(dir, src, amount) 
{
   if (amount==null) amount=10;
      if (dir=="up") {
         document.all[src].scrollLeft-=amount;
		 //standard_xPosition-=amount;
	  }else{
         document.all[src].scrollLeft+=amount;
		 //standard_xPosition+=amount;
	  }
   if (sRepeat==null)
      sRepeat = setInterval("doScrollerIE('" + dir + "','" + src + "'," + amount + ")",100);
return false 
}
window.document.onmouseout = new Function("clearInterval(sRepeat);sRepeat=null");
window.document.ondragstart = new Function("return false");

