/**
 * @author matrix
 */
<!--
var xmlHttpNotice = null;

function getNoticeTab()
{
	createxmlHttpNoticeRequest();
	var url = "../Xml/XmlNoticeTab.jsp";
	xmlHttpNotice.open("POST", url, true);
	xmlHttpNotice.onreadystatechange = handleStateChangeNoticeTab;
	xmlHttpNotice.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	xmlHttpNotice.send(null);
}

function handleStateChangeNoticeTab()
{
	if(xmlHttpNotice.readyState == 4) {
		if(xmlHttpNotice.status == 200) {
			parseNotice();
		}
	}
}

function createxmlHttpNoticeRequest()
{
	if (window.ActiveXObject)	{
		xmlHttpNotice = new ActiveXObject("Microsoft.XMLHTTP");
	} else if (window.XMLHttpRequest)	{
		xmlHttpNotice = new XMLHttpRequest();                
	}
}

function returnNullValue(obj)
{
	var ret = "";
	if ( !obj ) {
		ret = "";
	} else if ( obj == null ) {
		ret = "";
	} else if ( obj.firstChild == null ) {
		ret = "";
	} else {
		ret = obj.firstChild.nodeValue;
	}
	return  ret;
}

function viewNoticeTab(id, seq)
{
	if ( id != "" && seq != "" ) {
		location.href = "../Board/BoardView.jsp?id=" + id + "&seq=" + seq;
	}
}

function parseNotice()
{
	var results = xmlHttpNotice.responseXML;
	
	var properties = results.getElementsByTagName("RESULT");
		
	if ( properties.length > 0 ) {
			
		var property = properties[0];
		var err = property.getElementsByTagName("ERR")[0].firstChild.nodeValue;
		var txt = returnNullValue( property.getElementsByTagName("TXT")[0] );
			
		if ( err == "0" ) {
			properties = results.getElementsByTagName("CONTENTS");
			if ( properties.length > 0 ) {
				var list = "";
				var tab = "";
				var id = "";
											
				for (var i=0; i<properties.length; i++ ) {
					var property = properties[i];
					tab = returnNullValue( property.getElementsByTagName("TAB")[0] );
					id = returnNullValue( property.getElementsByTagName("ID")[0] );

					list += "<div style='float:left;width:100%;padding:0 0 5 0;'>";
					if ( tab == "NOTICE" ) {
						list += "<img src='../images/board/icon_001.gif' border=0 class='imgv'> ";
					} else {
						list += "<img src='../images/board/icon_002.gif' border=0 class='imgv'> ";
					}

					list += "<a href=\"javascript:viewNoticeTab('" + id + "'," + returnNullValue( property.getElementsByTagName("SEQ")[0] ) + ");\">";
					list += cutting( returnNullValue( property.getElementsByTagName("SUBJECT")[0] ), nNtSubject );
					list += "</a>";

					list += "</div>";
				}

				if ( document.getElementById("notice") ) {
					document.getElementById("notice").innerHTML = list;
				}

			} else {
				alert(txt);
			}
		} else {
			alert("Ä«Å×°í¸®¸¦ ºÒ·¯¿À´Âµ¥ ½ÇÆÐÇß½À´Ï´Ù.");
		}
	}
}

-->