function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// IPIN °ü·Ã ÇÔ¼ö
function ipinPopup() {		// ipin ÀÎÁõ
	window.open('', 'popup','width=448, height=500, top=10, left=10');
	document.form_ipin.target = "popup";
	document.form_ipin.action = "https://cert.vno.co.kr/ipin.cb";	
	document.form_ipin.submit();
}
function ipinPopup2() {		// ipin °¡ÀÔ, È®ÀÎ
	window.open('', 'popup','width=448, height=500, top=10, left=10');
	document.form_ipin.target = "popup";
	document.form_ipin.action = "http://www.vno.co.kr/pop/index.asp?p_site=A000";	
	document.form_ipin.submit();
}

/**
 * ÀÔ·Â°ª Ã¼Å© ¾øÀÌ ¼­ºê¹Ô ÇÑ´Ù.
 *
 * oFrm - Æû°´Ã¼
 * sAction - aciton URL
 * sTarget - Å¸°Ù¸í
 */
function goSubmit(oFrm, sAction, sTarget) {
	with (oFrm) {
		action = sAction;
		target = sTarget;
		submit();
	}
}
/**
 * ÀÔ·Â°ªÀ» Ã¼Å©ÇÏ°í ÀÌ»óÀÌ ¾øÀ¸¸é ¼­ºê¹ÔÇÑ´Ù.
 *
 * oFrm - Æû°´Ã¼
 * sAction - aciton URL
 * sTarget - Å¸°Ù¸í
 */
function goCheckSubmit(oFrm, sAction, sTarget) {
	// ÀÔ·Â data Ã¼Å© ÇÔ¼ö È£Ãâ(ÇÔ¼ö´Â °¢ page¿¡¼­ Á¤ÀÇ)
	try {
		if ( !checkSubmitData(oFrm) ) { 
			if (window.event) window.event.returnValue = false;
			return;
		}
	} catch (e) {}
	
	with (oFrm) {
		action = sAction;
		target = sTarget;
		submit();
	}
}

/**
 * ¼ýÀÚ Ã¼Å© ÇÔ¼ö
 * ³Ñ¾î¿Â °ªÀÌ ¼ýÀÚÀÏ °æ¿ì return true
 *
 * val - Ã¼Å©ÇÒ °ª
 */
function is_int(val) {
	for(var j=0; j<_intValue.length; j++)
		if(val == _intValue.charAt(j)) return true;

	return false;
}

/**
 * ÇØ´ç °´Ã¼°¡ ¼ýÀÚÀÎÁö Ã¼Å©ÇÏ´Â ÇÔ¼ö
 * °ªÀÌ ¼ýÀÚÀÎÁö¸¦ Ã¼Å©
 *
 * obj - Ã¼Å©ÇÒ °´Ã¼¸í
 */
function is_num(obj) {
	val=obj.value;
	re=/(^([0-9]+)([0-9]+)$)/gi;
	if (val.search(re) != -1)
		return true;
	else 
		return false;
}

/**
 * ¹®ÀÚ¿­ ÁÂÃøÀÇ °ø¹é Á¦°Å Ã³¸® ÇÔ¼ö
 *
 * val - Ã¼Å©ÇÒ °ª
 */
function ltrim(val) {
	while(val.substring(0,1) == ' ')
		val = val.substring(1, val.length);

	return val;
}

/**
 * Á¤±Ô½ÄÀ» ÀÌ¿ëÇÑ ÀÌ¸ÞÀÏÃ¼Å© ÇÔ¼ö
 * ÇÑ±ÛIDÀÎ °æ¿ì ¿¡·¯·Î ºüÁø´Ù.
 *
 * obj - Ã¼Å©ÇÒ °´Ã¼¸í
 */
function is_email_reg(obj) {
	var regExp = /[a-z0-9.-_]{2,}@[a-z0-9-_]{1,}\.[a-z0-9]{2,}/i;
	objValue = ltrim(obj.value);
	
	if (objValue != "") {
		if(!regExp.test(objValue)) {
			//obj.focus();
			return false;
		} else {
			return true;
		}
	} else {
		return true;
	}
}

/**
 * ¸ÞÀÎ ÆäÀÌÁö·Î ÀÌµ¿
 */
function goIndex() {
	top.location.href="/";
}

/**
 * url ÆäÀÌÁö·Î ÀÌµ¿
 */
function goPage(url) {
	document.location.href=url;
}

/*
*·Î±×ÀÎ Æû¿¡ µé¾î ÀÖ´Â bgÀÌ¹ÌÁö Á¦°Å
*/
function clearbg(o){
	o.style.backgroundImage = "";
}
/*
*·Î±×ÀÎ Æû°ª Ã¼Å© 
*/
function preLoginCheck(f){
	if(!f.id.value){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.");
		f.id.focus();
		return false;
	}
	
	if(!f.pass.value){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä");
		f.pass.focus();
		return false;
	}

	if(f.proc.value == "sub"){
		f.returl.value = parent.location.href;
	}
	
	return true;
}

/**
 * IFRAME ¸®»çÀÌÁî
 *
 * frmId - iframe object id
 */
function resize_iframe(frmId) {
	var o = document.getElementById(frmId);
	var height = o.contentDocument ? 
		o.contentDocument.documentElement.scrollHeight : 
		o.contentWindow.document.body.scrollHeight;
	o.style.height = height+"px";
}

/**
 * ÆË¾÷ ¶ç¿ì±â
 *
 * url - ÆË¾÷ ³»¿ë url
 * name - ÆË¾÷ À©µµ¿ì name
 * width - °¡·ÎÅ©±â
 * height - ¼¼·ÎÅ©±â
 * top - À§ÂÊ À§Ä¡
 * left - ¿ÞÂÊ À§Ä¡
 * option - Ãß°¡ ÇÊ¿ä ¿É¼Ç
 */
function openPopup(url, wname, width, height, top, left, option) {
	var str = '';
	
	if (width == '') width='480';
	if (height == '') height='300';
	if (top == '') top = '10';
	if (left == '') left = '10';
	if (option != '') option = ','+option;
	
	str = 'width='+width+',height='+height+',top='+top+',left='+left+option;
	window.open(url, wname, str);
}

/*
»ó´Ü ÇÃ·¡½¬¿¡¼­ È£ÃâµÇ´Â ¸µÅ© ÇÔ¼öµé...
*/
function menu01(){
	self.location.href = "/training/main.sis";
}

function menu02(){
	self.location.href = "/learning/learningInfo.sis";
}

function menu03(){
	self.location.href = "/community/list.sis?bid=notice";
}

function menu04(){
	self.location.href = "/mypage/trainPart.sis";
}

function menu05(){
	self.location.href = "/main/siteInfo.sis";
}

function home(){
	self.location.href = "/main/siteMain.sis";
}

function sitemap(){
	self.location.href = "/main/siteMap.sis";
}

function link_sis(){
	self.location.href = "/learning/renewSis.sis";
}

function link_isms(){
	self.location.href = "/learning/renewIsms.sis";
}

/*
¼¼¼Ç À¯Áö¸¦ À§ÇØ Á¢¼Ó À¯Áö¸¦ À§ÇØ È£ÃâÇÏ´Â ÇÔ¼ö
*/
function imageLoad(){
	var d = new Date();
	var a = new Image();
	a.src = "/common/imageBlank.sis?dummy="+d.getTime();
}

//5ºÐ¿¡ ÇÑ¹ø¾¿ Á¢¼Ó À¯Áö¸¦ ÇØÁØ´Ù.
function keepAlive(){
	setInterval("imageLoad()", 1000 * 60 * 5);
}