<!--

function check_null(obj, msg) {
	if(obj.value == '') {
		if(msg) alert(msg);
		obj.focus();
		return true;
	}
	return false;
}

function check_id_valid(obj, msg) {
	var chk = true;
	 if(obj.value.length < 4 || obj.value.length > 12) {
		chk = false;
	 }
	  var chr1 = obj.value.substr(0,1);
	  if(chr1 >= '0' && chr1 <= '9') {
		chk = false;
	  }
	 for(var i = 0; i < obj.value.length; i++) {
		var chr = obj.value.substr(i,1);
		if((chr < '0' || chr > '9') && (chr < 'a' || chr > 'z')) {
		  chk = false;
		}
	 }
	 if(!chk) {
	   if(msg) alert(msg);
	   obj.focus();
	 }
	 return chk;
}

function check_email(ec) {
	emailEx1 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z]+/;
	emailEx2 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z]+/;
	emailEx3 = /[^@]+@[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z0-9_-]+.[A-Za-z]+/;

	//if(!ec) return false;
	if(emailEx1.test(ec)) return false;
	if(emailEx2.test(ec)) return false;
	if(emailEx3.test(ec)) return false;

	return true;
}

function check_num_dash(obj){
	var chkstr = "0123456789-";
	var chk = false;
	if (obj.value.length == 0) return;

	for (var i = 0; i < obj.value.length; i++) {
		if (chkstr.indexOf(obj.value.substring(i, i + 1)) == -1) {
			chk = true;
		}
	}
	if(chk) {
		alert("¼ýÀÚ¸¸ ÀÔ·Â°¡´ÉÇÕ´Ï´Ù."); 
		obj.value = '';
		obj.focus();       
	}
}

function check_kr(obj) {
	var str = obj.value;
	var is_kor = true;
	for(i=0; i < str.length; i++) {
		if(!((str.charCodeAt(i) > 0x3130 && str.charCodeAt(i) < 0x318F) || (str.charCodeAt(i) >= 0xAC00 && str.charCodeAt(i) <= 0xD7A3))){
			is_kor = false;
		}
	}
	if(!is_kor){
		alert("ÇÑ±Û¸¸ ³ÖÀ»¼ö ÀÖ½À´Ï´Ù.");
		obj.value = "";
		obj.focus();
	}
}

// Title
document.title=" ::: Welcome to SHIN&KIM :::";

function write_flash(fname,fwidth,fheight){	
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+fwidth+'" height="'+fheight+'">');
	document.write('<param name="movie" value="'+fname+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src="'+fname+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+fwidth+'" height="'+fheight+'"></embed>');
	document.write('</object>');
}

function wn_on(a, b, c){

	if(c==1){
		window.open(a, b, "left=100, top=100, status=yes, scrollbars=yes, status=no, width=50, height=50");
		return b;
	}
	if(c==2){
		window.open(a, b, "left=100, top=100, resizable=yes, status=yes, scrollbars=no");
		return b;
	}
	if(c==3){
		window.open(a, b, "left=100, top=100, left=100, resizable=yes, status=yes, scrollbars=no, width=50, height=50");
		return b;
	}

	window.open(a, b, "left=100, top=100, scrollbars=no, status=yes, width=50, height=50");
	return b;

}

function focus_obj(obj) {
	obj.focus();
}

function documentWrite(txt) {
	document.write(txt);
}

// SwapImg
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_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_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];}
}

/*ActiveX ÇÃ·¡½¬*/
// id: flash id
// url: source url
// w: source width
// h: source height
// t: wmode (none/transparent/opaque)
function Flash(id,url,w,h,bg,t){
document.write("\
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='always' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='always' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

//ÆäÀÌÁö º¯¼ö ÂüÁ¶
var depth1 = "";
var depth2 = "";
var depth3 = "";
var logchk = "";

function setDepthVar(firvar, secvar, thrvar, logvar) {
	depth1 = firvar;
	depth2 = secvar;
	depth3 = thrvar;
	logchk = logvar;
}

function contactPop(){
	window.open('/ENG/_include/contact.asp','loginp','width=570, height=642'); 
}

function discPop(){
	window.open('/ENG/_include/disc.asp','disc','width=401, height=410');
}

function eventPop(){
	window.open('/ENG/_include/event.asp','event','width=570, height=632');
}

//-->