

if (document.all && document.getElementById)
{
	document.writeln ('<div id="layer_notice" style="position:absolute;left:150px;top:125px;width:800px;height:395px;z-index:999;display:none;">');

    document.writeln ('<table width="536" cellpadding="0" cellspacing="0">');
    document.writeln ('  <tr>');
    document.writeln ('    <td width="8"><img src="/Images/Popup/091001_notice/mold_01.gif"></td>');
    document.writeln ('    <td width="520" background="/Images/Popup/091001_notice/mold_02.gif"><table width="100%" cellspacing="0" cellpadding="0">');
    document.writeln ('      <tr>');
    document.writeln ('        <td><img src="/Images/Popup/091001_notice/mold_topLogo.gif"></td>');
    document.writeln ('        <td align="right"><a href="javascript:fx_close();"><img src="/Images/Popup/091001_notice/btn_close01.gif" border="0"></a></td>');
    document.writeln ('      </tr>');
    document.writeln ('    </table></td>');
    document.writeln ('    <td width="8"><img src="/Images/Popup/091001_notice/mold_03.gif"></td>');
    document.writeln ('  </tr>');
    document.writeln ('  <tr>');
    document.writeln ('    <td bgcolor="1C4590">&nbsp;</td>');
    document.writeln ('    <td><table width="100%" cellspacing="0" cellpadding="0">');
    document.writeln ('    	<tr>');
    document.writeln ('    		<td><img src="/Images/Popup/110315_notice/20110315_raise_2.jpg" border="0" usemap="#Map"></td>');
    document.writeln ('    		</tr>');
    document.writeln ('    	</table></td>');
    document.writeln ('    <td bgcolor="1C4590">&nbsp;</td>');
    document.writeln ('  </tr>');
    document.writeln ('  <tr>');
    document.writeln ('    <td><img src="/Images/Popup/091001_notice/mold_04.gif"></td>');
    document.writeln ('    <td background="/Images/Popup/091001_notice/mold_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">');
    document.writeln ('      <tr>');
    document.writeln ('        <td width="25" align="center"><input type="checkbox" name="Input2" onClick="fx_today_close();"></td>');
    document.writeln ('        <td align="left"><img src="/Images/Popup/091001_notice/today_close.gif" alt=""></td>');
    document.writeln ('        <td align="right"><a href="javascript:fx_close();" onFocus="this.blur()"><img src="/Images/Popup/091001_notice/btn_close02.gif" border="0"></a></td>');
    document.writeln ('      </tr>');
    document.writeln ('    </table></td>');
    document.writeln ('    <td><img src="/Images/Popup/091001_notice/mold_06.gif"></td>');
    document.writeln ('  </tr>');
    document.writeln ('</table>');
    document.writeln ('<map name="Map">');
    document.writeln ('  <area shape="rect" coords="162,510,360,564" href="/customer/Customer02_Inquiry.aspx">');
    document.writeln ('</map>');

	document.writeln ('</div>');

	function fx_close() {
	    document.getElementById('layer_notice').style.display = 'none';
	}

	function fx_open(){
	    document.getElementById('layer_notice').style.display = 'block';
	}

	function getCookieVal (offset) {
		var endstr = document.cookie.indexOf (';', offset);
		if (endstr == -1)
			endstr = document.cookie.length;
			return unescape(document.cookie.substring(offset, endstr));
	}

	function GetCookie (name) {
		var arg = name + '=';
		var alen = arg.length;
		var clen = document.cookie.length;
		var i = 0;
		while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg)
			return getCookieVal (j);
			i = document.cookie.indexOf(' ', i) + 1;
			if (i == 0) break;
		}
		return null;
	}
	
	function SetCookie(name, value, expiredays) {
		var todayDate = new Date();
		todayDate.setHours(todayDate.getHours()+expiredays);
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString()+ ";"
	}

	function DeleteCookie (name) {
		var exp = new Date(); 
		exp.setTime (exp.getTime() - 1); 
		SetCookie (name, null, -1);
	}

	function fx_today_close(){
		fx_close();
		SetCookie( "main_fx1", 1, 24); 
	}

	var ablecount = GetCookie('main_fx1');
	
	if (ablecount ==1) {
		fx_close();
	}
	
	if (ablecount == 1) {
		fx_close();
	} else {
		fx_open();
	}
}

