	var fontSize = 100;
	var fontColorIndex = 0;
	var bgColorIndex = 0;
	
	inputHeight = new Array();
	
	inputHeight[0] = 20;
	inputHeight[1] = 22;
	inputHeight[2] = 24;
	inputHeight[3] = 26;
	inputHeight[4] = 28;	
	
	inputFont = new Array();
	
	inputFont[0] = 14;
	inputFont[1] = 16;
	inputFont[2] = 18;
	inputFont[3] = 20;
	inputFont[4] = 22;	
	
	butFont = new Array();
	
	butFont[0] = 12;
	butFont[1] = 14;
	butFont[2] = 16;
	butFont[3] = 18;
	butFont[4] = 20;		
	
	tableWidth = new Array();
	
	tableWidth[0] = 851;
	tableWidth[1] = 1000;
	tableWidth[2] = 1500;
	tableWidth[3] = 1800;
	tableWidth[4] = 2300;
		
	fontColor = new Array();
	
	fontColor[0] = "a47749";
	fontColor[1] = "ffff00";
	fontColor[2] = "ffffff";
	fontColor[3] = "6666ff";
	fontColor[4] = "ff6666";
	fontColor[5] = "ff66ff";
	fontColor[6] = "66ff66";
	
	bgColor = new Array();
	
	bgColor[0] = "ffffff";
	bgColor[1] = "000000";
	bgColor[2] = "6666ff";
	bgColor[3] = "ff6666";
	bgColor[4] = "ff66ff";
	bgColor[5] = "66ff66";	

	var style;
	
	function fontPlus() { 
		if (fontSize < 300) {
			fontSize = fontSize + 10; 
			setFaceSize(); 
			table_width();
		} 
	}
	
	function fontMinus() { 
		if (fontSize >= 100) {
			fontSize = fontSize - 25; 
			setFaceSize();
			table_width(); 
		} 
	}


	function setStyle()
	{
		style = "body { margin-left : 0;margin-top : 0;	margin-right : 0;	margin-bottom: 0;	background-color:#" + bgColor[bgColorIndex] + ";	scrollbar-face-color: #ffffff;	scrollbar-shadow-color:#C0C0C0; 	scrollbar-highlight-color: #ffffff;	scrollbar-3dlight-color: #C0C0C0; 	scrollbar-darkshadow-color: white;      	scrollbar-track-color: #F9F9F9;	scrollbar-arrow-color: #666666; }";
		style = style + "td {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size: " + fontSize*0.85  + "%; line-height: 150%; color: #" + fontColor[fontColorIndex] + "; text-decoration: none}";
		style = style + "a:link {  font-family:  'Dotum', 'Dotumche', 'gulim' ,'Arial'; line-height: 120%; color: a47749; text-decoration: none}";
		style = style + "a:visited {  font-family:  'Dotum', 'Dotumche', 'gulim' ,'Arial'; line-height: 120%; color: a47749; text-decoration: none}";
		style = style + "a:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; line-height: 120%; color: a47749; text-decoration: underline}";
		style = style + ".body-bg {	background-attachment: fixed;	background-repeat: repeat-x;	background-position: left top;}";
		style = style + ".main-img {background-attachment: scroll;border: 1px solid #ffffff; color: 978E7A; }";
		style = style + ".sub-img {background-attachment: scroll;border: 1px solid #ffffff; color: 978E7A; }";
		style = style + ".tab-white-line {  border: 1px solid #ffffff; color: 978E7A; letter-spacing: -0.3pt; font-weight: bold}";
		style = style + ".menuwhite {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		style = style + ".menuwhite:link {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		style = style + ".menuwhite:visited {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		style = style + ".menuwhite:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #042A51; text-decoration: underline; font-weight: bold}";
		style = style + ".menubrown {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:100%; line-height:120%; color: #a47749; text-decoration: none; font-weight: bold}";
		style = style + ".menubrown:link {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:100%; line-height:120%; color: #a47749; text-decoration: none; font-weight: bold}";
		style = style + ".menubrown:visited {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:100%; line-height:120%; color: #a47749; text-decoration: none; font-weight: bold}";
		style = style + ".menubrown:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:100%; line-height:120%; color: #042A51; text-decoration: underline; font-weight: bold}";
	    style = style + ".menubrownsmall {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #a47749; text-decoration: none}";
		style = style + ".menubrownsmall:link {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial';font-size:80%; line-height:120%; color: #a47749; text-decoration: none}";
		style = style + ".menubrownsmall:visited {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #a47749; text-decoration: none}";
		style = style + ".menubrownsmall:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';font-size:80%; line-height:120%; color: #A07D01; text-decoration: underline}";
		style = style + ".whitebold {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #ffffff; text-decoration: none;  font-weight: bold}";
		style = style + ".white {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #ffffff; text-decoration: none}";
		style = style + ".lightblueline {	font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';	font-size: 90%;	color: #c7e3ff;	text-decoration: underline;	}";
		style = style + ".darkblueline {	font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';	font-size: 90%;	line-height: 13pt;	color: #0256b6;	text-decoration: underline;}";
		style = style + ".blue {	font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';	line-height: 13pt;	color: #0055ac;	text-decoration: none}";
		style = style + ".marineblue{	font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';	line-height: 13pt;	color: 0081ff;	text-decoration: none}";
		style = style + ".bluebold {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';  color: #0256b6;  font-weight: bold}";
		style = style + ".blackbold {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; line-height: 120%; color: #a47749; font-weight: bold;}";
		style = style + ".black {	font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';	line-height: 13pt;	color: #a47749;}";
		style = style + ".blacksmall {	font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';	line-height: 13pt;	color: #a47749;	font-size: 77%;}";
		style = style + ".orangebold {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';  color: #FF7800;  font-weight: bold}";
		style = style + ".brown {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #413300;}";
		style = style + ".brownlight {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #806A00;}";
		style = style + ".gray {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size: 70%;  color: #999999;}";
		style = style + ".graybold {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #555555; font-weight: bold}";
		style = style + ".navigation {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize*0.7  + "%;  color: #555555; line-height:120%;}";
		style = style + ".orange {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #ff6c00;}";
		style = style + ".red {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #E35A5A;}";
		style = style + ".green {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; color: #1C741C;}";
		style = style + ".align-just {	text-align: justify;}";
		style = style + ".pad-right {	padding-right: 10px;	text-align: right;	}";
		style = style + ".small {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size: " + fontSize*0.77  + "%; line-height: 150%; color: a47749; text-decoration: none; }";
		style = style + ".paging-b {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: FC572E; text-decoration: none; font-weight: bold}";
		style = style + ".brown-b {  font-family: 'Dotum', 'Dotumche', 'gulim'; color: 675C42; text-decoration: none;  font-weight: bold}";
		style = style + ".board {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: a47749; text-decoration: none}";
		style = style + ".board:link {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: a47749; text-decoration: none}";
		style = style + ".board:visited {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: a47749; text-decoration: none}";
		style = style + ".board:hover {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 042A51; text-decoration: underline}";




		if ( fontSize > 100 )
		{
			style = style + "	 .input1 { font-family:µ¸¿ò; border:1 solid #333333; color: #a47749; height: "+inputHeight[((fontSize-100)/10)]+"px; width: 200px; font-size:" + inputFont[((fontSize-100)/10)] + "px}  ";
			style = style + "	 .but1 { font-family:µ¸¿ò; border:1 solid #595959; background-color:#E6E6E6; color: #a47749; height: "+inputHeight[((fontSize-100)/10)]+"px; width: 70px; font-size:" + butFont[((fontSize-100)/10)] + "px}  ";
			style = style + "	 .but2 { font-family:µ¸¿ò; border:1 solid #595959; background-color:#E6E6E6; color: #a47749; height: "+inputHeight[((fontSize-100)/10)]+"px; width: 100px; font-size:" + butFont[((fontSize-100)/10)] + "px}  ";
			style = style + "	 .choice1 { font-family:µ¸¿ò; color: #a47749; height: "+inputHeight[((fontSize-100)/10)]+"px; width: 200px; font-size:" + butFont[((fontSize-100)/10)] + "px}  ";
			style = style + ".menuwhite {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		    style = style + ".menuwhite:link {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		    style = style + ".menuwhite:visited {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		    style = style + ".menuwhite:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #042A51; text-decoration: underline; font-weight: bold}";
			
			style = style + ".menubrownsmall {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #222222; text-decoration: none}";
		    style = style + ".menubrownsmall:link {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #222222; text-decoration: none}";
		    style = style + ".menubrownsmall:visited {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #222222; text-decoration: none}";
		    style = style + ".menubrownsmall:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #A07D01; text-decoration: underline}";
		    style = style + ".navigation {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize*0.7  + "%;  color: #555555; line-height:120%;}";
		    style = style + ".small {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size: " + fontSize*0.77  + "%; line-height: 150%; color: 333333; text-decoration: none; }";
		    style = style + ".paging-b {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: FC572E; text-decoration: none; font-weight: bold}";
			style = style + ".brown-b {  font-family: 'Dotum', 'Dotumche', 'gulim'; color: 675C42; text-decoration: none;  font-weight: bold}";
			style = style + ".board {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 333333; text-decoration: none}";
			style = style + ".board:link {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 333333; text-decoration: none}";
			style = style + ".board:visited {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 333333; text-decoration: none}";
			style = style + ".board:hover {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 042A51; text-decoration: underline}";

		}
		else
		{
			style = style + "	 .input1 { font-family:µ¸¿ò; background-color:#FFFFFF; border:1 solid #333333; color: #a47749}  ";
			style = style + "	 .but1 { font-family:µ¸¿ò; border:1 solid #595959; background-color:#E6E6E6; color: #a47749}  ";
			style = style + "	 .but2 { font-family:µ¸¿ò; border:1 solid #595959; background-color:#E6E6E6; color: #a47749}  ";
			style = style + "	 .choice1 { font-family:µ¸¿ò; color: #a47749}  ";
			style = style + ".menuwhite {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		    style = style + ".menuwhite:link {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		    style = style + ".menuwhite:visited {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #ffffff; text-decoration: none; font-weight: bold}";
		    style = style + ".menuwhite:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize  + "%; line-height:120%; color: #042A51; text-decoration: underline; font-weight: bold}";
			style = style + ".menubrownsmall {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial';font-size:80%; line-height:120%; color: #222222; text-decoration: none}";
			style = style + ".menubrownsmall:link {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #222222; text-decoration: none}";
			style = style + ".menubrownsmall:visited {  font-family:'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #222222; text-decoration: none}";
			style = style + ".menubrownsmall:hover {  font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:80%; line-height:120%; color: #A07D01; text-decoration: underline}";
			style = style + ".navigation {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size:" + fontSize*0.7  + "%;  color: #555555; line-height:120%;}";
			style = style + ".small {font-family: 'Dotum', 'Dotumche', 'gulim' ,'Arial'; font-size: " + fontSize*0.77  + "%; line-height: 150%; color: 333333; text-decoration: none; }";
			style = style + ".paging-b {  font-family: 'Dotum', 'Dotumche', 'gulim'; color: FC572E; text-decoration: none; font-weight: bold}";
			style = style + ".brown-b {  font-family: 'Dotum', 'Dotumche', 'gulim'; color: 675C42; text-decoration: none;  font-weight: bold}";
			style = style + ".board {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 333333; text-decoration: none}";
			style = style + ".board:link {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 333333; text-decoration: none}";
			style = style + ".board:visited {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 333333; text-decoration: none}";
			style = style + ".board:hover {  font-family: 'Dotum', 'Dotumche', 'gulim';  color: 042A51; text-decoration: underline}";

		}
		document.styleSheets[0].cssText= style;
	}

	function setFaceSize(){		
		setStyle()
		SetCookie("sitefontsize",fontSize,"","/","");
	}

	function setFaceColor(){		
		setStyle()
		SetCookie("sitefontcolor",fontColorIndex,"","/","");
	}

	function setFaceBackground(){
		setStyle()
		SetCookie("sitebgcolor",bgColorIndex,"","/","");
	}

	function SetCookie (name,value,expires,path,domain) { 
		document.cookie = name + "=" + escape (value) + 
		((expires) ? "; expires=" + expires.toGMTString() : "") + 
		((path) ? "; path=" + path : "") + 
		((domain) ? "; domain=" + domain : ""); 
	}

	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 getCookieVal (offset) {
		var endstr = document.cookie.indexOf (";", offset); 
		if (endstr == -1)
			endstr = document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	} 
	
	function DeleteCookie (name,path,domain) { 
		if (GetCookie(name)) { 
			document.cookie = name + 
			"=" +((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT"; 
		} 
	} 

	function table_width()
	{
		tbl_total.width = tableWidth[((fontSize-100)/10)];
	}

	function setFontCookie(){
		//return;
		//DeleteCookie("sitefontsize","/","")
		if(GetCookie("sitefontsize") == null)
		{
			fontSize = 100;
		}
		else
		{
			fontSize= GetCookie("sitefontsize");
		}
			
		if(GetCookie("sitefontcolor") == null)
			fontColorIndex = 0;
		else
			fontColorIndex= GetCookie("sitefontcolor");	
			
		if(GetCookie("sitebgcolor") == null)
			bgColorIndex = 0;
		else
			bgColorIndex= GetCookie("sitebgcolor");		
			
		if (fontSize==0)
		{
			fontSize = 100;
		}
		
		table_width();
			
		fontSize = fontSize * 1;
		//alert(fontSize)	;
		setFaceSize();	
	}	

	function ChangeFontColor(theForm)
	{
		if(theForm.ColorIndex.selectedIndex != 0) {
			fontColorSet(theForm.ColorIndex.selectedIndex-1);
		}
	}
	
	function ChangeBgColor(theForm)
	{
		if(theForm.BgColorIndex.selectedIndex != 0) {
			bgColorSet(theForm.BgColorIndex.selectedIndex-1);
		}
	}

	function fontColorSet(param) {
		if ( param >= 0 && param <= 6 ) {
			fontColorIndex = param;
			setFaceColor();
		}
	}
	
	function bgColorSet(param) {
		if ( param >= 0 && param <= 5 ) {
			bgColorIndex = param;
			setFaceBackground();
		}
	}	
	