<!--

if (document.images) {
//########## eng menu ##########
  tm01on = new Image();
  tm01on.src ="images/mm_nav1_1.gif";
  tm01off = new Image();
  tm01off.src ="images/mm_nav1_0.gif";

  tm02on = new Image();
  tm02on.src ="images/mm_nav2_1.gif";
  tm02off = new Image();
  tm02off.src ="images/mm_nav2_0.gif";

  tm03on = new Image();
  tm03on.src ="images/mm_nav3_1.gif";
  tm03off = new Image();
  tm03off.src ="images/mm_nav3_0.gif";

  tm04on = new Image();
  tm04on.src ="images/mm_nav4_1.gif";
  tm04off = new Image();
  tm04off.src ="images/mm_nav4_0.gif";

  tm05on = new Image();
  tm05on.src ="images/mm_nav5_1.gif";
  tm05off = new Image();
  tm05off.src ="images/mm_nav5_0.gif";

  tm06on = new Image();
  tm06on.src ="images/mm_nav6_1.gif";
  tm06off = new Image();
  tm06off.src ="images/mm_nav6_0.gif";

  tm07on = new Image();
  tm07on.src ="images/mm_nav7_1.gif";
  tm07off = new Image();
  tm07off.src ="images/mm_nav7_0.gif";

}

function turnOn(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "on.src");
  }
}

function turnOff(imageName) {
  if (document.images) {
    document[imageName].src = eval(imageName + "off.src");
  }
}


// Å¬¸¯½Ã »õÃ¢¿­±â , ¸µÅ©¿¡¼­

function winPlay() {
   window.open("wm_play2.asp","trackshoe","location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=700,height=600,left=0, top=0, scrollbars=no")
} 

function winPlay320() {
   window.open("wm_play320.asp","trackshoe","location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=375,height=400,left=0, top=0, scrollbars=no")
} 

function winPlay320_300() {
   window.open("wm_play320_300.asp","trackshoe","location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=375,height=400,left=0, top=0, scrollbars=no")
} 

function winPrint(url) {
   myvar =url
   window.open("print_"+myvar+".asp","trackprint","location=no, directories=no,resizable=no,status=no,toolbar=no,menubar=no, width=786,height=600,left=0, top=0, scrollbars=yes")
}


/************************************************************************************
 *
 * Function Name : EmptyCheck()
 * Description   : blankcheck.
 * Return Value  : True, False
 *
************************************************************************************/
function EmptyCheck( data, strErrMessage, focus )
{
	var count=0;
    var bSwitch = true;

	if( data.length < 1 ) {
		bSwitch =  false;
	}

    for( var i=0; i<data.length; i++) {
		if ( data.charCodeAt(i) == 32 ) count++;
	}

	if ( count == data.length )
	{
        if( strErrMessage != null  ) alert( strErrMessage );
        if( focus != null ) focus.focus();
	    bSwitch =  false;
    }
    return bSwitch;
}



/************************************************************************************
 *
 * Function Name : LengthCheck()
 * Description   : charactor length check.
 * Return Value  : True, False
 *
************************************************************************************/
function LengthCheck(max, data, strErrMessage, focus)
{
	var count = 0;
	for ( var i=0; i < data.length; i++ )
	{
		if( data.charCodeAt(i) < 127 )
			count++;
		else
			count = count + 2;
	}

	if( count <= max  ) return  true;

	if( strErrMessage != null  ) alert( strErrMessage );

	if( focus != null ) focus.focus();

	return false;
}


function EmailCheck(data, strErrMessage, focus)
{
	if(( data.indexOf('@') > 0 ) && ( data.indexOf('.') > 0 ))
	{
		return true;
	}

	if( strErrMessage != null  ) alert( strErrMessage );

	if( focus != null ) focus.focus();

    return false;

}


/************************************************************************************
 *
 *	Function Name : IsTypeCheck()
 * 	Description : DataÀÇ TypeÀ» Ã¼Å©ÇÏ¿©ÁØ´Ù
 *	Return Value : Yes
 *  usage : 		if(!IsTypeCheck("AN",f.ar_tel_no.value,"MESSAGE",f.ar_tel_no)) return;
 *					if(!IsTypeCheck("AN",f.ar_tel_no.value,"Message", null )) return;
 *					if(!IsTypeCheck("AN",f.ar_tel_no.value,null, null )) return;
 ************************************************************************************/
	function IsTypeCheck(type,data,strErrMessage,focus) {
		var count=0;
		var bSwitch = true;

		switch (type.toUpperCase()) {
			case 'EMAIL' : //EMAIL Check
				var len = data.length;
				var strEMail = data.split('@');

				for( var i=0; i<len; i++) {
					if ( data.charCodeAt(i) == 32 ) {
						bSwitch = false;
						break;
					}
					if ( data.charAt(i)==".") count++;
				}

				if( bSwitch ) {
					if ((count==0) || (strEMail.length != 2 )) bSwitch = false;
				}

				break;

		}
		//Á¤»óÀûÀÌ¸é
		if (bSwitch) return true;

		//ºñÁ¤»óÀûÀÎ °æ¿ì ¸Þ¼¼Áö°¡ ÀÖ´Â °æ¿ì
		if ( strErrMessage != null  ) alert( strErrMessage );

		if ( focus != null ) {
			focus.focus();
			focus.select();
		}

		return false;
	}

//Copyright ºÎºÐ °è¿­»ç »çÀÌÆ® 
function jumpMenu(targ,selObj,restore){                                   
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}  

function jumpMenu02(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value);
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



// °¡¿îµ¥ ÆË¾÷Ã¢ ¿­±â

function openWindowFrameless(url,winname,x,y)
{
win = window.open( "" ,winname, "fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+x+",height="+y+";");
var cx = Math.ceil( (window.screen.width - x) / 2 );
var cy = Math.ceil( (window.screen.height - y) / 2 );
win.resizeTo( Math.ceil( x ) , Math.ceil(y) );
win.moveTo ( Math.ceil( cx ) , Math.ceil( cy ) );
// ÆäÀÌÁöÀüÈ¯
win.document.location.replace(url);
}

// openWindowFrameless("http://www.lsmtron.co.kr","lsmtron",500,500);


// -->


