// Å¬¸³º¸µå º¹»ç(ÁÖ¼Òº¹»ç)
function set_ClipBoard(uri)
{

	uri = uri.replace('&lt;','<');
	uri = uri.replace('&gt;','>');
	window.clipboardData.setData('Text', uri);
	alert('º¹»çµÇ¾ú½À´Ï´Ù.');
 
}


// Áñ°ÜÃ£±â Ãß°¡
function set_BookMark(site_url, site_name)
{
	window.external.AddFavorite(site_url, site_name);
}


// ½ÃÀÛÆäÀÌÁö
function set_StartPage(site_url)
{
	//<a href="javascript:;" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.dadembi.com');">½ÃÀÛÆäÀÌÁö ¼³Á¤</a> 
}


// °¡°Ý¿¡ ¿ø´ÜÀ§ ÄÄ¸¶¸¦ Âï´Â´Ù.
function set_WonComma(price)
{

	if(price != null){
		var pricelen = price.length;
		var ii = pricelen%3;
		var wonprice = price.substring(0,ii);
		for(;ii<pricelen;ii+=3){
			wonprice += "," + price.substring(ii,ii+3);
		}
		if((pricelen%3) == 0)
		wonprice = wonprice.substring(1,wonprice.length);
		return wonprice;
	}
	
}


// ÀÌ¸ÞÀÏ Ã¼Å©
function check_Email(email)
{  
	var email_1 = "";
	var email_2 = "";
	var check_point = 0;

	if (email.indexOf("@") < 0 ) {		
		return false;
	}
	if (email.indexOf(".") < 0 ) {		
		return false;
	}

	if (email.indexOf("'") >= 0 ) {		
		return false;
	}
	if (email.indexOf("|") >= 0 ) {		
		return false;
	}
	if (email.indexOf(">") >= 0 ) {		
		return false;
	}
	if (email.indexOf("<") >= 0 ) {		
		return false;
	}
	if (email.indexOf(" ") >= 0 ) {		
		return false;
	}

	for(var j = 0 ; j < email.length; j++)
	{
		if(email.substring(j, j + 1) != "@" && check_point == 0)
		{
			email_1 = email_1 + email.substring(j, j + 1)
		}
		else if(email.substring(j, j + 1) == "@" )
		{
			check_point = check_point + 1;
		}
		else
		{
			email_2 = email_2 + email.substring(j, j + 1);	
		}
	}

	//if (email_1.length < 3 ) {
	//	alert("e-mail¿¡ @ ¾ÕÀÚ¸®´Â 3ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ßÇÕ´Ï´Ù.");
	//	form1.email.focus();
	//	return false;
	//}
	
	//if (email_2.length < 2 ) {
	//	alert("e-mail¿¡ @ µÞÀÚ¸®´Â 2ÀÚ¸®ÀÌ»ó ÀÔ·ÂÇÏ¼Å¾ßÇÕ´Ï´Ù.");
	//	form1.email.focus();
	//	return false;
	//}

	if (check_point > 1 ) {
		alert("e-mail¿¡ @ ´Â 1¹øÀÌ»ó µé¾î°¥¼ö ¾ø½À´Ï´Ù.");
		return false;
	}

	if (email_2.indexOf("(") >= 0 ) {
		alert("e-mail¿¡ ( ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf("(") >= 0 ) {
		alert("e-mail¿¡ ( ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf(")") >= 0 ) {
		alert("e-mail¿¡ ) ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf(",") >= 0 ) {
		alert("e-mail¿¡ , ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf(";") >= 0 ) {
		alert("e-mail¿¡ ; ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf(":") >= 0 ) {
		alert("e-mail¿¡ : ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf("/") >= 0 ) {
		alert("e-mail¿¡ / ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf("[") >= 0 ) {
		alert("e-mail¿¡ [ ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf("]") >= 0 ) {
		alert("e-mail¿¡ ] ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf("{") >= 0 ) {
		alert("e-mail¿¡ { ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf("}") >= 0 ) {
		alert("e-mail¿¡ } ´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	if (email_2.indexOf(" ") >= 0 ) {
		alert("e-mail¿¡ ½ºÆäÀÌ½º´Â Æ÷ÇÔÇÒ¼ö ¾ø½À´Ï´Ù..");
		return false;
	}
	
	return true;
	
}


// ¼ýÀÚ Ã¼Å©
function check_Num(tocheck)
{

	if (tocheck == null || tocheck == "")
	{
		return false;
	}
	
	for(var j = 0 ; j < tocheck.length; j++)
	{
		if ( tocheck.substring(j, j + 1) != "0"
			&&   tocheck.substring(j, j + 1) != "1"
			&&   tocheck.substring(j, j + 1) != "2"
			&&   tocheck.substring(j, j + 1) != "3"
			&&   tocheck.substring(j, j + 1) != "4"
			&&   tocheck.substring(j, j + 1) != "5"
			&&   tocheck.substring(j, j + 1) != "6"
			&&   tocheck.substring(j, j + 1) != "7"
			&&   tocheck.substring(j, j + 1) != "8"
			&&   tocheck.substring(j, j + 1) != "9" )
		{
			return false;
		}
	}
	
	return true;
	
}


// ÁÖ¹Î µî·Ï ¹øÈ£ Ã¼Å©
function check_ResidentNO(str_f_num, str_l_num)
{  

	var i3=0
	for (var i=0;i<str_f_num.length;i++)
	{
		var ch1 = str_f_num.substring(i,i+1);
		if (ch1<'0' || ch1>'9') { i3=i3+1 }
	}
	if ((str_f_num == '') || ( i3 != 0 ))
	{
		return (false);
	}

	var i4=0
	for (var i=0;i<str_l_num.length;i++)
	{
		var ch1 = str_l_num.substring(i,i+1);
		if (ch1<'0' || ch1>'9') { i4=i4+1 }
	}
	if ((str_l_num == '') || ( i4 != 0 ))
	{
		return (false);
	}
	
	if(str_f_num.substring(0,1) < 0)
	{
		return (false);
	}
	
	if(str_l_num.substring(0,1) > 2)
	{
		return (false);
	}
	
	if((str_f_num.length > 7) || (str_l_num.length > 8))
	{
		return (false);
	}
	
	if ((str_f_num == '72') || ( str_l_num == '18'))
	{
		return (false);
	}
	
	var f1=str_f_num.substring(0,1)
	var f2=str_f_num.substring(1,2)
	var f3=str_f_num.substring(2,3)
	var f4=str_f_num.substring(3,4)
	var f5=str_f_num.substring(4,5)
	var f6=str_f_num.substring(5,6)
	var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7
	var l1=str_l_num.substring(0,1)
	var l2=str_l_num.substring(1,2)
	var l3=str_l_num.substring(2,3)
	var l4=str_l_num.substring(3,4)
	var l5=str_l_num.substring(4,5)
	var l6=str_l_num.substring(5,6)
	var l7=str_l_num.substring(6,7)
	hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5
	hap=hap%11
	hap=11-hap
	hap=hap%10
	if (hap != l7) 
	{
		return (false);
	}
	
	return true; 
	
}



// Æ¯¼ö¹®ÀÚ°¡ÀÖ´ÂÁö Ã¼Å©
function check_Char(id_text)
{

	var alpha = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
	var numeric = '1234567890';
	var nonkorean = alpha+numeric; 
	
	var i ; 
	for ( i=0; i < id_text.length; i++ )  {
		if( nonkorean.indexOf(id_text.substring(i,i+1)) < 0) {
			break ; 
		}
	}
	
	if ( i != id_text.length ) {
		return false ; 
	}
	else{
		return true ;
	} 
	
	return true;

}


// Æ¯¼ö¹®ÀÚ Ã¼Å©
function check_nonChar(id_text)
{
	var nonchar = '~`!@#$%^&*()-_=+\|<>?,./;:"';
	var numeric = '1234567890';
	var nonkorean = nonchar+numeric; 
	
	var i ; 
	for ( i=0; i < id_text.length; i++ )  {
		if( nonkorean.indexOf(id_text.substring(i,i+1)) > 0) {
			break ; 
		}
	}
	
	if ( i != id_text.length ) {
		return false ; 
	}
	else{
		return true ;
	} 
	
	return false;
}

// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function WIZ_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function WIZ_swapImgRestore() { //v3.0
  var i,x,a=document.WIZ_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function WIZ_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.WIZ_p) d.WIZ_p=new Array();
    var i,j=d.WIZ_p.length,a=WIZ_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.WIZ_p[j]=new Image; d.WIZ_p[j++].src=a[i];}}
}

function WIZ_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=WIZ_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function WIZ_swapImage() { //v3.0
  var i,j=0,x,a=WIZ_swapImage.arguments; document.WIZ_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=WIZ_findObj(a[i]))!=null){document.WIZ_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function WIZ_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.WIZ_pgW=innerWidth; document.WIZ_pgH=innerHeight; onresize=WIZ_reloadPage; }}
  else if (innerWidth!=document.WIZ_pgW || innerHeight!=document.WIZ_pgH) location.reload();
}
WIZ_reloadPage(true);

/* °Ô½ÃÆÇ ¸ñ·Ï Ã¼Å©¹Ú½º */

// Ã¼Å©¹Ú½º ÀüÃ¼¼±ÅÃ
function selectAllBbs(){
	var i;
	for(i=0;i<document.forms.length;i++){
		if(document.forms[i].idx != null){
			if(document.forms[i].select_checkbox){
				document.forms[i].select_checkbox.checked = true;
			}
		}
	}
	return;
}

// Ã¼Å©¹Ú½º ¼±ÅÃÇØÁ¦
function selectCancelBbs(){
	var i;
	for(i=0;i<document.forms.length;i++){
		if(document.forms[i].select_checkbox){
			if(document.forms[i].idx != null){
				document.forms[i].select_checkbox.checked = false;
			}
		}
	}
	return;
}

// Ã¼Å©¹Ú½º¼±ÅÃ ¹ÝÀü
function selectReverseBbs(form){
	if(form.select_tmp.checked){
		selectAllBbs();
	}else{
		selectCancelBbs();
	}
}

// Ã¼Å©¹Ú½º ¼±ÅÃ¸®½ºÆ®
function selectValueBbs(){
	var i;
	var selbbs = "";
	for(i=0;i<document.forms.length;i++){
		if(document.forms[i].idx != null){
			if(document.forms[i].select_checkbox){
				if(document.forms[i].select_checkbox.checked)
					selbbs = selbbs + document.forms[i].idx.value + "|";
				}
			}
	}
	return selbbs;
}

//¼±ÅÃ°Ô½Ã¹° »èÁ¦
function delBbs(purl, param){
	
	selbbs = selectValueBbs();

	if(selbbs == ""){
		alert("»èÁ¦ÇÒ °Ô½Ã¹°À» ¼±ÅÃÇÏ¼¼¿ä.");
		return false;
	}else{
		if(confirm("¼±ÅÃÇÑ °Ô½Ã¹°À» Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
			document.location = purl + "?ptype=save&mode=delbbs&selbbs=" + selbbs + "&" + param;
		}
	}
}

//°Ô½Ã¹°ÀÌµ¿
function moveBbs(code){
	selbbs = selectValueBbs();
	if(selbbs == ""){
		alert("ÀÌµ¿ÇÒ °Ô½Ã¹°À» ¼±ÅÃÇÏ¼¼¿ä.");
		return false;
	}else{
		var uri = "/admin/bbs/move.php?code=" + code + "&selbbs=" + selbbs;
		window.open(uri,"moveBbs","width=300,height=80");
	}
}

// °Ô½Ã¹°º¹»ç
function copyBbs(code){
	selbbs = selectValueBbs();
	if(selbbs == ""){
		alert("º¹»çÇÒ °Ô½Ã¹°À» ¼±ÅÃÇÏ¼¼¿ä.");
		return false;
	}else{
		var uri = "/admin/bbs/copy.php?code=" + code + "&selbbs=" + selbbs;
		window.open(uri,"copyBbs","width=300,height=80,resizable=yes");
	}
}

String.prototype.trim = function(){
	return this.replace(/(^\s*)|(\s*$)|($\s*)/g, "");	
}


var styleEng = new Array();
var styleKor = new Array();

var pageKind = "";

styleKor["eai_style_text01"] = "<p id='eai_style_text01' style='font-family:Dotum; font-size:13px; color:#000; font-weight:bold;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text02"] = "<p id='eai_style_text02' style='font-family:Dotum; font-size:19px; color:#104e8b; font-style:italic;'>¾È³çÇÏ¼¼¿ä </p>";
styleKor["eai_style_text03"] = "<p id='eai_style_text03' style='font-family:Dotum;font-size:11px; color:#000; font-weight:bold;background:url(http://121.78.112.190/common/img/showTextListStyle.gif) no-repeat left; padding:0 0 0 15px;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text04"] = "<li id='eai_style_text04' style='margin:0;font-family:Dotum;font-size:11px; color:#000; font-weight:bold;list-style-image:url(http://121.78.112.190/common/img/showTextListStyle.gif);'>¾È³çÇÏ¼¼¿ä </li>";
styleKor["eai_style_text05"] = "<p id='eai_style_text05' style='font-family:Dotum; font-size:11px; color:#5e5e5e;'> ¾È³çÇÏ¼¼¿ä  </p>";
styleKor["eai_style_text06"] = "<p id='eai_style_text06' style='font-family:Dotum; font-size:13px; color:#996600;font-weight:bold;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text07"] = "<p id='eai_style_text07' style='font-family:Dotum; font-size:15px; color:#104e8b;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text08"] = "<p id='eai_style_text08' style='font-family:Dotum; font-size:13px; color:#104e8b; font-weight:bold;'>¾È³çÇÏ¼¼¿ä2</p>";
styleKor["eai_style_text09"] = "<p id='eai_style_text09' style='font-family:Dotum; font-size:13px; color:#104e8b; font-weight:bold; background:url(http://121.78.112.190/common/img/listStyle.gif) no-repeat left; padding:0 0 0 10px;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text10"] = "<p id='eai_style_text10' style='font-family:Dotum;font-size:13px; color:#104e8b; font-weight:bold;background:url(http://121.78.112.190/type/img/addrDtStyle.gif) no-repeat left; padding:0 0 0 15px;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text11"] = "<p id='eai_style_text11' style='font-family:Dotum; font-size:13px; color:#996600;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text12"] = "<p id='eai_style_text12' style='font-family:Dotum; font-size:13px; color:#996600;font-weight:bold;'>¾È³çÇÏ¼¼¿ä</p>";
styleKor["eai_style_text13"] = "<p id='eai_style_text13' style='font-family:Dotum; font-size:13px; color:#996600;'>¾È³çÇÏ¼¼¿ä</p>";

styleEng["eai_style_text01"] = "<p id='eai_style_text01' style='font-family:Arial; font-size:13px; color:#000; font-weight:bold;'>test01</p>";
styleEng["eai_style_text02"] = "<p id='eai_style_text02' style='font-family:Times New Roman; font-size:19px; color:#104e8b; font-style:italic;'>Journal of East Asian </p>";
styleEng["eai_style_text03"] = "<p id='eai_style_text03' style='font-family:Arial;font-size:11px; color:#000; font-weight:bold;background:url(http://121.78.112.190/common/img/showTextListStyle.gif) no-repeat left; padding:0 0 0 15px;'>ARTICLES</p>";
styleEng["eai_style_text04"] = "<li id='eai_style_text04' style='margin:0;font-family:Arial;font-size:11px; color:#000; font-weight:bold;list-style-image:url(http://121.78.112.190/common/img/showTextListStyle.gif);'>ARTICLES Hello</li>";
styleEng["eai_style_text05"] = "<p id='eai_style_text05' style='font-family:Arial; font-size:11px; color:#5e5e5e;'>Patrick Koellner  </p>";
styleEng["eai_style_text06"] = "<p id='eai_style_text06' style='font-family:Arial; font-size:13px; color:#996600;font-weight:bold;'>Table of Contents</p>";
styleEng["eai_style_text07"] = "<p id='eai_style_text07' style='font-family:Times New Roman; font-size:15px; color:#104e8b;'>Japanese Lower House</p>";
styleEng["eai_style_text08"] = "<p id='eai_style_text08' style='font-family:Time New Roman; font-size:13px; color:#104e8b; font-weight:bold;'>test02</p>";
styleEng["eai_style_text09"] = "<p id='eai_style_text09' style='font-family:Arial; font-size:13px; color:#104e8b; font-weight:bold; background:url(http://121.78.112.190/common/img/listStyle.gif) no-repeat left; padding:0 0 0 10px;'>test03</p>";
styleEng["eai_style_text10"] = "<p id='eai_style_text10' style='font-family:Arial;font-size:13px; color:#104e8b; font-weight:bold;background:url(http://121.78.112.190/type/img/addrDtStyle.gif) no-repeat left; padding:0 0 0 15px;'>test05</p>";
styleEng["eai_style_text11"] = "<p id='eai_style_text11' style='font-family:Times New Roman; font-size:13px; color:#996600;'>test07</p>";
styleEng["eai_style_text12"] = "<p id='eai_style_text12' style='font-family:Times New Roman; font-size:13px; color:#996600;font-weight:bold;'>test08</p>";
styleEng["eai_style_text13"] = "<p id='eai_style_text13' style='font-family:Arial; font-size:13px; color:#996600;'>test09</p>";

function swfbutton(sty)
{
var tag = "";
  
if(pageKind == "kor")
{
  tag = styleKor[sty];
}

if(pageKind == "eng")
{
  tag = styleEng[sty];
}


var rst = "";
rst += "<object id='copyClipboard' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='100' height='22'>";
rst += "<param name='movie' value='/styleguide/copy_clipboard.swf'>";
rst += "<param name='quality' value='high' />";
rst += "<param name='allowScriptAccess' value = 'always' />";
rst += "<param name='wmode' value = 'transparent' />";
rst += "<param name='flashvars' value=\"str="+tag+"\" />";
rst += "</object>";
return rst;
}

function pageCopy()
{
  var rst = "";
  var Obj = document.getElementById("titleArea");
  var Obj1 = document.getElementById("boxIntro");
  var Obj2 = document.frames.tmpfrm;
  var Obj3 = Obj2.document.getElementById("contents");
  var targetObj = document.getElementById("copySource");
  if(Obj)
  {
    rst += Obj.innerHTML;
  }
  if(Obj1)
  {
    rst += Obj1.innerHTML;
  }
  var rst = "<link href=\"http://www.eai.or.kr/type/style/subStyle.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\" />" + rst + Obj3.innerHTML;

  targetObj.pageCopy(rst);
  
  alert("copy complete");
}

function clipBoardCopy() {
  var browser = "IE";
  var rst = "";
  var pst = "";

  if (navigator.appName.indexOf('Microsoft') != -1) {
			browser = "IE";
		}else{
 			browser = "NS";
		}

		if(browser == "IE"){

  rst += "<object id='copySource' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='100' height='16' style='margin:0 4px 0 0'>\n";
  rst += "<param name='movie' value='/common/swf/copy_clipboard.swf'>\n";
  rst += "<param name='quality' value='high' />\n";
  rst += "<param name='allowScriptAccess' value = 'always' />\n";
  rst += "<param name='wmode' value = 'transparent' />\n";
  rst += "</object>";
  document.getElementById("divScrap").innerHTML = rst;
		} else {

	pst += "<object id='copySource' type='application/x-shockwave-flash' data='/common/swf/copy_clipboard.swf' width='100' height='16'>\n";
	pst += "<param name='quality' value='high' />\n";
	pst += "<param name='allowScriptAccess' value = 'always' />\n";
	pst += "<param name='wmode' value = 'transparent' />\n";
	pst += "</object>\n";
	document.getElementById("divScrap").innerHTML = pst;
		}

}



function styleGuideKor()
{
pageKind = "kor";

var korHtml = "";
korHtml += "<div id='sampleDiv' style='z-index:100;position:absolute;display:none;background-color:#ffffff;padding:2px;left:10px;top:50px;'>";
korHtml += "<table width='300' border='0' cellspacing='4' cellpadding='2' style='border:1px solid #999999;'><tr>";
korHtml += "<td height='25' height='25'>"+styleKor["eai_style_text01"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text01')+"</td height='25'></tr>";
korHtml += "<tr><td height='25'>"+styleKor["eai_style_text02"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text02')+"</td height='25'></tr><tr>";
korHtml += "<td height='25'>"+styleKor["eai_style_text03"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text03')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text04"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text04')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text05"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text05')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text06"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text06')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text07"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text07')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text08"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text08')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text09"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text09')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text10"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text10')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text11"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text11')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text12"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text12')+"</td height='25'>";
korHtml += "</tr><tr><td height='25'>"+styleKor["eai_style_text13"]+"</td height='25'>";
korHtml += "<td height='25'>"+swfbutton('eai_style_text13')+"</td height='25'>";
korHtml += "</tr><tr><td colspan='2' align='right' style='font-family:Dotum;font-size:10px;cursor:hand;' onClick='closeDiv()'>[Close]</td>";
korHtml += "</tr></table></div>";

document.write( korHtml);
}

function styleGuideEng()
{
pageKind = "eng";

var engHtml = "";
engHtml += "<div id='sampleDiv' style='z-index:100;position:absolute;display:none;background-color:#ffffff;padding:2px;left:10px;top:50px;'>";
engHtml += "<table width='300' border='0' cellspacing='4' cellpadding='2' style='border:1px solid #999999;'>";
engHtml += "<tr><td colspan='2'>::::::::: Style Guide ::::::::</td></tr><tr>";
engHtml += "<td height='25' height='25'><p id='eai_style_text01' style='font-family:Arial; font-size:13px; color:#000; font-weight:bold;'>test01</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text01')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text02' style='font-family:Times New Roman; font-size:19px; color:#104e8b; font-style:italic;'>Journal of East Asian </p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text02')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text03' style='font-family:Arial;font-size:11px; color:#000; font-weight:bold;background:url(http://121.78.112.190/common/img/showTextListStyle.gif) no-repeat left; padding:0 0 0 15px;'>ARTICLES</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text03')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><li id='eai_style_text04' style='margin:0;font-family:Arial;font-size:11px; color:#000; font-weight:bold;list-style-image:url(http://121.78.112.190/common/img/showTextListStyle.gif);'>ARTICLES Hello</li></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text04')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text05' style='font-family:Arial; font-size:11px; color:#5e5e5e;'>Patrick Koellner  </p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text05')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text06' style='font-family:Arial; font-size:13px; color:#996600;font-weight:bold;'>Table of Contents</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text06')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text07' style='font-family:Times New Roman; font-size:15px; color:#104e8b;'>Japanese Lower House</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text07')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text08' style='font-family:Time New Roman; font-size:13px; color:#104e8b; font-weight:bold;'>test02</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text08')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text09' style='font-family:Arial; font-size:13px; color:#104e8b; font-weight:bold; background:url(http://121.78.112.190/common/img/listStyle.gif) no-repeat left; padding:0 0 0 10px;'>test03</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text09')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text10' style='font-family:Arial;font-size:13px; color:#104e8b; font-weight:bold;background:url(http://121.78.112.190/type/img/addrDtStyle.gif) no-repeat left; padding:0 0 0 15px;'>test05</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text10')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text11' style='font-family:Times New Roman; font-size:13px; color:#996600;'>test07</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text11')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text12' style='font-family:Times New Roman; font-size:13px; color:#996600;font-weight:bold;'>test08</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text12')+"</td height='25'>";
engHtml += "</tr><tr><td height='25'><p id='eai_style_text13' style='font-family:Arial; font-size:13px; color:#996600;'>test09</p></td height='25'>";
engHtml += "<td height='25'>"+swfbutton('eai_style_text13')+"</td height='25'>";
engHtml += "</tr><tr><td colspan='2' align='right' style='font-family:Arial;font-size:10px;cursor:hand;' onClick='closeDiv()'>[Close]</td>";
engHtml += "</tr></table></div>";

document.write( engHtml);

}



function closeDiv()
{
	var obj = document.getElementById("sampleDiv");
	obj.style.display = "none";
}

function openDiv()
{
	var obj = document.getElementById("sampleDiv");
	obj.style.display = "block";
}


