function Check_SChar(d) 
{ 
var k_code = event.keyCode ; 


if ( 
k_code == 96 ||		// ` 96 
k_code == 33 ||		// ! 33 
k_code == 64 ||		// @ 64 
k_code == 35 ||		// # 35 
k_code == 36 ||		// $ 36 
k_code == 37 ||		// % 37 
k_code == 94 ||		// ^ 94 
//k_code == 38||		// & 38 
k_code == 42 ||		// * 42 
// k_code == 40||	// ( 40 
// k_code == 41||	// ) 41 
 k_code == 95||	// _ 95 
// k_code == 43 ||		// + 43 
k_code == 92 ||		// \ 92 
k_code == 124 ||	    // | 124 
//k_code==79	 ||
k_code == 34 ||     // " 34 
k_code == 39 ||       // ' 39 
//k_code == 111  ||      // o 39 
k_code == 188  ||      // < 188
k_code == 190  ||     // > 190
k_code == 207      // ? 190
//k_code == 189      // - 189

) 
{ 
alert("Æ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù."); 
event.returnValue = false; 
} 
}


/*
function keypressed() { 
  if(event.keyCode==8) return false;
  return true;
}
document.onkeydown=keypressed;

*/




// file upload °ü¸®ÀÚ°¡ Çã¶ôÇÑ ÆÄÀÏ¸¸ ¾÷·Îµå °¡´É

//
// ------------------------------------------------------------------
//' Function : chk_extensiton(v_file_name)
// Description : ÆÄÀÏcheck
//' Argument : 
//' Return : 
//<input type=file name="fileinput" onChange="chk_extensiton(this.value)">
// ------------------------------------------------------------------
//

/*
function chk_extensiton(v_file_name) {

allow = false;
var v_file_name_len = v_file_name.length ;
var v_file_name_len1 = eval(v_file_name_len)-3 ;
var v_exte = "" ;

// ÆÄÀÏ¸í °Ë»ç
v_exte = v_file_name.substring(v_file_name_len1, v_file_name_len).toUpperCase(); 



var compStr = new Array("TXT","DOC","XLS","PPT","HWP","PDF","GUL","CSV","XLC"); 


for( i=0; i<compStr.length; i++) {

if ( compStr[i] == v_exte) 
{
 allow = true;
  break;
  }
}

if( !allow) {
	
alert("¾÷·ÎµåÇÒ¼ö¾ø´Â È®ÀåÀÚ¸íÀÔ´Ï´Ù");
document.user.userfile.focus();
var attachfile = document.getElementsByName("userfile");
attachfile[0].select(); // attachfile ¹è¿­ Ã¹¹øÂ° ¼±ÅÃ
document.selection.clear(); 
return;
}else if( allow) {

	document.user.s_content.focus();


}
}


// emailÇü½Ä  check

function validfn(fnm)   // this.value
{
  
  fnlen=fnm.length;


if( fnlen <10 ) {

	alert( "ÀÌ¸ÞÀÏÀ» È®ÀÎÇÏ¼¼¿ä!");


document.user.s_email.select()

}  
else if (fnm.search("@") == -1 || fnm.indexOf(".")<3) 
  {
      alert("ÀÌ¸ÞÀÏÀÇ Çü½ÄÀÌ Àß¸øµÇ¾ú½À´Ï´Ù. ´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!")
     
	  document.user.s_email.select()

	  }
}
*/

//---------------------------------------------
//			url ÁÖ¼Ò ³ªÅ¸³»Áö ¾Ê°Ô..
//---------------------------------------------
/*

function hidestatus(){ 
window.status='' 
return true 
} 

if (document.layers) 
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 

document.onmouseover=hidestatus 

*/


/*
function hidestatus() { 
window.status='A&D½Å¿ëÁ¤º¸ È¨ÆäÀÌÁö ÀÔ´Ï´Ù.'; 
return true; 
} 
function hiddenMenuShow(currMenu){ 
if (document.all) { 
thisMenu = eval("document.all." + currMenu + ".style") 
if (thisMenu.display=="none"){ 
thisMenu.display=""; 
} else { 
thisMenu.display="none"; 
} return false; 
} else { 
return true; 
} 
} 
if (document.layers) 
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 
document.onmouseover=hidestatus 
document.onmouseout=hidestatus 

*/



/*
function runClock() { 
theTime = window.setTimeout("runClock()", 1000); 
var today = new Date(); 
var display= today.toLocaleString(); 
status=display; 
} 

*/
	
//-------------------------------------------------
//		»óÅÂ¹Ù¿¡ ¿À´Ã³¯Â¥¿ÍÇöÀç½Ã°£ Ãâ·Â
//-------------------------------------------------


function updateTime() {

var flasher = false

        var now = new Date()
        var theHour = now.getHours()
        var theMin = now.getMinutes()
        var theSec = now.getSeconds()

        var theTime = "" + ((theHour > 12) ? theHour - 12 : theHour)
        theTime += ((theMin < 10) ? ":0" : ":") + theMin
        theTime += ((theSec < 10) ? ":0" : ":") + theSec
        theTime += (theHour >= 12) ? " pm" : " am"
        theTime += ((flasher) ? " " : "*")
        flasher = !flasher
        window.status = "A&DÈ¨ÆäÀÌÁö ÀÔ´Ï´Ù ..ÇöÀç ½Ã°£Àº :  " + theTime
        timerID = setTimeout("updateTime()",1000)
}


