function openwindow(url,kWidth,kHeight) {
  window.open(url,"_blank","width="+kWidth+",height="+kHeight+",resizable=no,scollbars=no");
}

function move(idx){
	if(idx!="0"){
		var go="/archive/"+idx+"/ebook/ebook.htm";
		window.open(go,'win1','width=200,height=200,resizable=no,scrolling=no');
	}
}

function FlashShow(url, width, height){
        document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<param name="wmode" value="transparent">');
        document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
        document.write('</object>');
}

//var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var dayarray=new Array("ÀÏ¿äÀÏ","¿ù¿äÀÏ","È­¿äÀÏ","¼ö¿äÀÏ","¸ñ¿äÀÏ","±Ý¿äÀÏ","Åä¿äÀÏ");
//var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var montharray=new Array("1¿ù","2¿ù","3¿ù","4¿ù","5¿ù","6¿ù","7¿ù","8¿ù","9¿ù","10¿ù","11¿ù","12¿ù");
 
function getthedate(){
	var mydate=new Date();
	var year=mydate.getYear();
	if (year < 1000) year+=1900;
	var day=mydate.getDay();
	var month=mydate.getMonth();
	var daym=mydate.getDate();
	//if (daym<10)
	//daym="0"+daym
	var hours=mydate.getHours();
	var minutes=mydate.getMinutes();
	var seconds=mydate.getSeconds();
	var dn="AM";
	if (hours>=12) dn="PM";
	if (hours>12){
		hours=hours-12;
	}
	if (hours==0) hours=12;
	if (minutes<=9) minutes="0"+minutes;
	if (seconds<=9) seconds="0"+seconds;
	//change font size here
	//var cdate="<small><font color='000000' face='Arial'><b>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+" "+hours+":"+minutes+":"+seconds+" "+dn;
	var cdate="<b>"+year+"³â "+montharray[month]+" "+daym+"ÀÏ "+dayarray[day]+" "+hours+":"+minutes+":"+seconds+" "+dn+"</b>";
	if (document.all){
		document.all.clock.innerHTML=cdate;
	}else if (document.getElementById){
		document.getElementById("clock").innerHTML=cdate;
	}else{
		document.write(cdate);
	}
	if (!document.all&&!document.getElementById) getthedate();
}
function startclock(){
	if (document.all||document.getElementById) setInterval("getthedate()",1000);
}


function check_sksearch(){
	if(document.sksearch.id.value=='a'){
		alert("°Ë»öÇÒ ºÐ·ù¸¦ ¼±ÅÃÇÏ¼¼¿ä.");
		document.sksearch.id.focus();
		return false;
	}
	if(document.sksearch.keyword.value==''){
		alert("°Ë»öÇÒ ´Ü¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.sksearch.keyword.focus();
		return false;
	}
}
