
function showS1(pos,Layer) {
	hideS1();
	var minus=0;
	if(pos>2) 
		minus= 100;
	if(pos==3 || pos==6)
		minus= 150;
	if(pos==4) 
		minus= 330;
	if(pos==5) 
		minus= 280;
	if(pos==5)
		Layer.style.width=390;
	if(pos==6)
		Layer.style.width=240;
	
	Layer.style.left=mainTBL.offsetLeft + M[pos].offsetLeft -minus;
	Layer.style.top=mm.offsetTop + M[pos].offsetHeight+8;
	Layer.style.display="inline";
}


function show_S1(pos) {
	S1[pos].style.display="inline";
}

function showS2(param,M,j) {
	hideS2(M,j);
	document.all[M+"S2"+j].style.left=param.offsetLeft+param.offsetWidth;
	document.all[M+"S2"+j].top=param.offsetTop;
	document.all[M+"S2"+j].style.display="inline";
}

function hideS2(M,j){
for (i=0;i<2 ;i++ )
	document.all[1+"S2"+i].style.display="none";
}

function chkTalk(){
var strName = document.Talk.Name.value;
var strPWD = document.Talk.PWD.value;
var strSubject = document.Talk.Subject.value;
var strContents = document.Talk.Contents.value;

if (!strName)
	alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
else if(!strPWD)
	alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
else if(!strSubject)
	alert("Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
else if(!strContents)
	alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
else
	document.Talk.submit();
}

function CheckSearch(KeyWord){
var GoUrl
if (!KeyWord)
{	
	alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.")
}
else
	document.Tsearch.submit();
}

///////////¹æ¸í·Ï//////////////////////////
function TextSend() {

 var str;
 
    str = document.TempText.Name.value;
    if (str == "" ){
  alert( "ÀÌ¸§À» ÀÔ·ÂÇÏ½Ê½Ã¿À." );
  document.TempText.Name.focus();
  return true;
 } 
  str = document.TempText.Pwd.value;
   if (str == "" ){
  alert( "ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À." );
  document.TempText.Pwd.focus();
  return true;
 } 
 
  str = document.TempText.Content.value;
   if (str == "" ){
  alert( "³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À." );
  document.TempText.Content.focus();
  return true;
 } 

else{
		document.TempText.submit();
	}

}
///////////´Þ·Â/////////////////
function chkVal(){
   var str;
    str = document.Calendar.Subject.value;
    if (str == "" ){
       alert( "Á¦¸ñÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À." );
     document.Calendar.Subject.focus();
    return true;
 } 
  str = document.Calendar.Contents.value;
   if (str == "" ){
   alert( "³»¿ëÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À." );
   document.Calendar.Contents.focus();
   return true;
  } 
  else{
		document.Calendar.submit();
	}
}
function check(){
  window.open("","result","width=542,height=382");
 }


function getCookie( name ){ 
var nameOfCookie = name + "="; 
var x = 0; 
while ( x <= document.cookie.length ) 
{ 
  var y = (x+nameOfCookie.length); 
  if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
       if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
             endOfCookie = document.cookie.length; 
             return unescape( document.cookie.substring( y, endOfCookie ) ); 
           } 
      x = document.cookie.indexOf( " ", x ) + 1; 
      if ( x == 0 ) 
       break; 
     } 
  return ""; 
} 


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function changeimage(towhat,url){ 
if (document.images){ 
document.images.targetimage.src=towhat.src 
gotolink=url 
} 
} 
function warp(){ 
window.location=gotolink 
} 

var myimages=new Array() 
var gotolink="#"

function preloadimages(){ 
for (i=0;i<preloadimages.arguments.length;i++){ 
myimages[i]=new Image() 
myimages[i].src=preloadimages.arguments[i] 
} 
} 
// Ã¹¹øÂ° ÀÌ¹ÌÁöºÎÅÍ °æ·Î¸¦ ¼³Á¤ ....
preloadimages("/images/costom/as2.gif","/images/costom/as1.gif","/images/costom/as3.gif","/images/costom/as4.gif","/images/costom/as5.gif","/images/costom/as6.gif") 

