﻿<!--
function hidestatus() {
  window.status = "방대한 中國의 歷史... 그 속에서 펼쳐지는 위대한 英雄들의 이야기, 그리고 재미난 武俠世界로의 旅行";
  return true;
}

if (document.layers)
    document.captureEvents (Event.mouseover | Event.mouseout);
    document.onmouseover = hidestatus;
    document.onmouseout = hidestatus;
    
function copyURL()  {     // 현재 경로를 클립보드로 복사하기
  var copy_zone = document.all.c_url.createTextRange();
  copy_zone.select();
  copy_zone.execCommand('Copy');
  alert('현재 경로가 클립보드로 복사되었습니다.  ');
  document.selection.empty();
}

function RollImg(RI_Name, RI_Path) {
	// RollImg(img태그 name, 이미지 경로)
	RI_Name.src = RI_Path;
}

function openWin( ) { // 팝업 윈도우 호출 부분 
  var myWin = window.open('../main/star.html','pbml_win','toolbar=no,location=no,directories=no, status=no,menubar=no,resizable=no,scrolling=no,width=430,height=170,top=250,left=200'); 
}

function selectLinks(form) {
  var http
  for(i=0;i<form.links.length;i++) {
    if(form.links.options[i].selected == true) {
      http = form.links.options[i].value
    }
  }
  openWindow(http)
}

function findProverb(form) {      // 삼국지 고사성어 찾기
  var list = form.selectedIndex;
  url = form.options[list].value;
  window.open(url, "_self");
  form.selectedIndex = 0;
}

function iframe_resize() { 
  if(document.all.bgm.style.height == '70px') {
      document.all.bgm.style.height = '1px';
  } else {
      document.all.bgm.style.height = '70px';
  }
}

function change_image(name, win, rpath) {
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? win+'.'+name : 'document.all.'+name);
  if (name == '')    return;
  if (img) {img.src = rpath;}
}

function sunsign() {
   document.form1.date.selectedIndex;
   document.form1.month.selectedIndex;
   document.form1.sign.value;
   if (document.form1.month.selectedIndex == 1 && document.form1.date.selectedIndex <=19) {document.form1.sign.value = "염소자리";}
   if (document.form1.month.selectedIndex == 1 && document.form1.date.selectedIndex >=20) {document.form1.sign.value = "물병자리";}
   if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex <=18) {document.form1.sign.value = "물병자리";}
   if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex >=19) {document.form1.sign.value = "물고기자리";}
   if (document.form1.month.selectedIndex == 3 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "물고기자리";}
   if (document.form1.month.selectedIndex == 3 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "양쟈리";}
   if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "양자리";}
   if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "황소자리";}
   if (document.form1.month.selectedIndex == 5 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "황소자리";}
   if (document.form1.month.selectedIndex == 5 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "쌍둥이자리";}
   if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "쌍둥이자리";}
   if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "게자리";}
   if (document.form1.month.selectedIndex == 7 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "게자리";}
   if (document.form1.month.selectedIndex == 7 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "사자자리";}
   if (document.form1.month.selectedIndex == 8 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "사자자리";}
   if (document.form1.month.selectedIndex == 8 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "처녀자리";}
   if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "처녀자리";}
   if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "천칭자리";}
   if (document.form1.month.selectedIndex == 10 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "천칭자리";}
   if (document.form1.month.selectedIndex == 10 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "전갈자리";}
   if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex <=21) {document.form1.sign.value = "전갈자리";}
   if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex >=22) {document.form1.sign.value = "사수자리";}
   if (document.form1.month.selectedIndex == 12 && document.form1.date.selectedIndex <=20) {document.form1.sign.value = "사수자리";}
   if (document.form1.month.selectedIndex == 12 && document.form1.date.selectedIndex >=21) {document.form1.sign.value = "염소자리";}
   if (document.form1.month.selectedIndex == "x" || document.form1.date.selectedIndex == "y") return;
}

function validate() {
   if (document.form1.month.selectedIndex == 2 && document.form1.date.selectedIndex > 29) {alert("There are only a maximum of 29 days in February."); return false;}
   if (document.form1.month.selectedIndex == 4 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in April."); return false;}
   if (document.form1.month.selectedIndex == 6 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in June."); return false;}
   if (document.form1.month.selectedIndex == 9 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in September."); return false;}
   if (document.form1.month.selectedIndex == 11 && document.form1.date.selectedIndex == 31) {alert("There are only 30 days in November."); return false;}
    else{
      return true;
    }
}

function viewContent(no)  {
  for (i = 0; i <= 15; i ++)	{
  	  var divName = document.all["series_info" + i];
  	  if (no != i)	{
  	  	divName.style.display = "none";
  	  	document.all.T2.style.display = "none";
  	  }
  }
  document.all.T1.style.display = "";
  document.all["series_info" + arguments[0]].style.display = "";
}

function viewContent2(no)  {
  for (i = 0; i <= 5; i ++)	{
  	  var divName2 = document.all["nation_info" + i];
  	  if (no != i)	{
  	  	divName2.style.display = "none";
  	  	document.all.T1.style.display = "none";
  	  }
  }
  document.all.T2.style.display = "";
  document.all["nation_info" + arguments[0]].style.display = "";
}
//-->
