//Top Flash ³×ºñ°ÔÀÌ¼Ç ÆÄÀÏ
function topmenu_DoFSCommand(command, args)
{	
	switch (command){
			
		case "mintro":
			location.href="/intro/toefl_what.asp";
			break;	
				
		case "mhowto":
			location.href="/howto/column1_1.asp?pageNum=1";
			break;		
			
		case "mcourse":
			location.href="/course/back.asp";
			break;	
				
		case "mtest":
			location.href="/test/test_list.asp";
			break;	
				
		case "mboard":
			location.href="/board/news_list.asp";
			break;	
						
		case "mpage":
			location.href="/mypage/mpa_index.asp";
			break;
		
		case "min_01":
			location.href="/intro/toefl_what.asp";
			break;	
		case "min_02":
			location.href="/intro/toefl_struc.asp";
			break;	
		case "min_03":
			location.href="/intro/toefl_ibt.asp";
			break;
		
		case "mho_01":
			location.href="/howto/column1_1.asp?pageNum=1";
			break;	
		case "mho_02":
			location.href="/howto/column2_1.asp?pageNum=2";
			break;	
		case "mho_03":
			location.href="/howto/book.asp?pageNum=3";
			break;	
	
		case "mco_01":
			location.href="/course/back.asp?pageNum=1";
			break;	
		case "mco_02":
			location.href="/course/situation.asp?pageNum=2";
			break;	
		case "mco_03":
			location.href="/course/toefl_speaking_list.asp?pageNum=3";
			break;
		case "mco_04":
			location.href="/course/toefl_free_list.asp?pageNum=4&sec=S";
			break;
	
		case "mte_01":
			location.href="/test/test_list.asp";
			break;	
		case "mte_02":
			location.href="/test/test_free.asp";
			break;	
	
		case "mbo_01":
			location.href="/board/news_list.asp?pageNum=1";
			break;	
		case "mbo_02":
			location.href="/board/notice_free.asp?pageNum=2";
			break;	
		case "mbo_03":
			location.href="/board/toefl_semi_list.asp?pageNum=3&b_type_seq=42";
			break;
		case "mbo_04":
			location.href="/board/toefl_wri_list.asp?pageNum=4&b_type_seq=111";
			break;
		case "mbo_05":
			location.href="/board/toefl_qna_list.asp?pageNum=5";
			break;
	
		
		case "mpa_01":
			location.href="/mypage/info_modi.asp";
			break;	
		case "mpa_021":
			location.href="/mypage/myroom.asp";
			break;
		case "mpa_03":
			location.href="/mypage/mytest.asp";
			break;
		case "mpa_04":
			location.href="/mypage/myqna.asp";
			break;
		case "mpa_05":
			location.href="/mypage/myorder.asp";
			break;
		case "mpa_06":
			location.href="/mypage/mycart.asp";
			break;
		case "mpa_07":
			location.href="/mypage/memberout.asp";
			break;
	}

}

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];}
}

function documentWrite(str)
{
	document.write(str);
}

function showSwf(src,w,h,name){	  
	documentWrite('<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="'+w+'" height="'+h+'" id="'+name+'">');
	documentWrite('	<param name="movie" value="'+src+'">');
	documentWrite('	<param name="quality" value="high">');
	documentWrite('	<embed src="'+src+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" name="'+name+'"></embed>');
	documentWrite('</object>');
}


function memberjoin(str){
	//¾à°ü Ã¼Å© È®ÀÎ
	if (document.getElementById('agreebox').value != '1' || !document.getElementById('agreebox').checked) {
		alert('¸ÕÀú ¾à°ü¿¡ µ¿ÀÇÇÏ¼Å¾ß ÇÕ´Ï´Ù.');
		return false;
	}

	//°ª¿¡ µû¶ó ¾Ë¸ÂÀº È­¸éÀ¸·Î ºÐ±â
	if (str=='st') window.location.href='register_stu.asp'; //ÇÐ»ý
	else window.location.href='register_p.asp'; //ÀÏ¹Ý
}


// ÀÌ¸ÞÀÏ Áßº¹¿©ºÎ È®ÀÎ URL
function emailsearch() {
	var email, email1, email2, url, emailetc;

	email1 = document.join.email1.value;
	email2 = document.join.email2.value;
	
	if (document.join.emailetctext.value == "")
	{
		email = email1 + "@" + email2;	}
	else {
		email = email1 + "@" + document.join.emailetctext.value;	
	}
	
	// Áßº¹È®ÀÎ½Ã ÀÌ¸ÞÀÏ ÀÔ·ÂÈ®ÀÎ(¼±ÅÃ)
	if(document.join.email2.value != "input") {
		if(email1 == "") {
			alert("¸ÕÀú ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.email1.focus();
			return false;
		}
		else if(email2 == "") {
			alert("¸ÕÀú ÀÌ¸ÞÀÏÀ» ¼±ÅÃÇÏ¼¼¿ä.");
			document.join.email2.focus();
			return false;
		}
	}

	// Áßº¹È®ÀÎ½Ã ÀÌ¸ÞÀÏ ÀÔ·ÂÈ®ÀÎ(Á÷Á¢)
	if(document.join.email2.value == "input") {
		if(document.join.emailetctext.value == "") {
			alert("¸ÕÀú ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.emailetctext.focus();
			return false;
		}
		// Áßº¹È®ÀÎ½Ã ÀÌ¸ÞÀÏ Ã¼Å©
		if (document.join.emailetctext.value != "") {
			if (document.join.emailetctext.value.indexOf(".") == -1) { 
				alert("ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ Àß¸øµÇ¾ú½À´Ï´Ù.\n\n'.'À» Æ÷ÇÔÇØ¼­ ÀÔ·ÂÇÏ¼¼¿ä."); 
				document.join.emailetctext.focus(); 
				return false;
			}
			if(document.join.emailetctext.value.match(/[a-zA-Z0-9.@_]+/g) != document.join.emailetctext.value) {
				alert("ÇÑ±ÛÀÌ³ª Æ¯¼ö¹®ÀÚ¸¦ »ç¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.")
				document.join.emailetctext.focus();
				return false;
			}
		}
	}
	
	url="id_check.asp?email=" +  email;
	
	F_PopUp('400','112',"EmailSearch",url,'300','200','N');
	return false;
	//F_PopUp(w_width, w_height, w_name, w_url, w_left, w_top, scroll_yn)
	
}



// ÁÖ¹Î¹øÈ£ Áßº¹¿©ºÎ È®ÀÎ URL
function juminsearch() {
	// Áßº¹È®ÀÎ½Ã ÁÖ¹Î¹øÈ£ ÀÔ·ÂÈ®ÀÎ(¼±ÅÃ)
	var j_no1 = document.join.j_no1.value ;
	var j_no2 = document.join.j_no2.value ;

	if(j_no1 == "" ||  j_no2 == "" ) {
		alert("¸ÕÀú ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.j_no1.focus();
		return false;
	}
	
	url="jumin_check.asp?j_no=" +  j_no1+"-"+j_no2;
	F_PopUp('400','112',"JuminSearch",url,'300','200','N');
	return false;

}

// ¸ÞÀÏÃ¼Å©½Ã È­¸éÇ¥½Ã (±âÅ¸ÀÌ¸ÞÀÏÀ» Ã¼Å©ÇßÀ»¶§)
function mailcheck() {
	if(document.join.email2.value == "input" ) {	
		etcDiv.style.display = "inline";
		etcDiv2.style.display = "none";
		document.join.emailetctext.readOnly = 0;
		//document.join.email1.style.backgroundColor = "#C6C3C6";
		//document.join.emailetctext.style.backgroundColor = "#FFFFFF";
		document.join.emailetc.value = 1;
		document.join.emailetctext.focus();
	}
	else {
		etcDiv.style.display = "none";
		document.join.emailetctext.readOnly = 1;
		//document.join.email1.style.backgroundColor = "#FFFFFF";
		//document.join.emailetctext.style.backgroundColor = "#C6C3C6";
		document.join.emailetctext.value = "";
		document.join.email1.readOnly = 0;
		document.join.emailetc.value = "";
		document.join.email2.focus();
	}
}


//È¸¿ø °¡ÀÔ½Ã check function 
function log() {
			
	// ÀÌ¸§ È®ÀÎ
	if(document.join.name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.!!");
		document.join.name.focus();
		return false;
	}

	// ÀÌ¸§ Ã¼Å©(ÇÑ±Û, ¿µ¾î¸¸ °¡´É)
	if(document.join.name.value != "") {
		if((document.join.name.value.match(/[a-zA-Z°¡-È÷]+/g)) != document.join.name.value) {
			document.join.name.value = "";
			alert("ÇÑ±ÛÀÌ³ª ¿µ¾î¸¸ °¡´ÉÇÕ´Ï´Ù.");
			document.join.name.focus();
			return false;
		}
	}

	// ÀÌ¸ÞÀÏ ÀÔ·Â ¼±ÅÃ (¼±ÅÃ/Á÷Á¢)
	if(document.join.emailetctext.readOnly) {
		// ÀÌ¸ÞÀÏÈ®ÀÎ
		if(document.join.email1.value == "") {
			alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			document.join.email1.focus();
			return false;
		}

		// ÀÌ¸ÞÀÏ µÞÀÚ¸® È®ÀÎ
		if(document.join.email2.value == "") {
			alert("ÀÌ¸ÞÀÏ µÞÀÚ¸®¸¦ ¼±ÅÃÇÏ½Ê½Ã¿ä.");
			document.join.email2.focus();
			return false;
		}
	}
	else {
	// ÀÌ¸ÞÀÏ Á÷Á¢ ÀÔ·Â È®ÀÎ
		if(document.join.emailetctext.value == "") {
			alert("ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.emailetctext.focus();
			return false;
		}
		
	 }

	// ºñ¹Ð¹øÈ£ È®ÀÎ
	if(document.join.passwd.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.passwd.focus();
		return false;
	}

	// ºñ¹Ð¹øÈ£ ÀçÀÔ·Â È®ÀÎ
	if(document.join.repasswd.value == "") {
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» À§ÇØ ÇÊ¿äÇÕ´Ï´Ù. ¹Ýµå½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.repasswd.focus();
		return false;
	}


	// ºñ¹Ð¹øÈ£ ºñ±³
	if(document.join.passwd.value != document.join.repasswd.value) {
		document.join.repasswd.value = "";
		alert("ºñ¹Ð¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù. ´Ù½Ã È®ÀÎÇÏ¼¼¿ä.");
		document.join.repasswd.focus();
		return false;
	}

	// ÁÖ¹Î¹øÈ£ È®ÀÎ
	if(document.join.j_no1.value == "" || document.join.j_no1.value.length != 6){
		alert("ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.j_no1.focus();
		return false;
	}
	if(document.join.j_no2.value == "" || document.join.j_no2.value.length != 7){
		alert("ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.j_no2.focus();
		return false;
	}
	
	// ÀüÈ­¹øÈ£ È®ÀÎ
	if(document.join.tel21.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.tel21.focus();
		return false;
	}

	if(document.join.tel22.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.tel22.focus();
		return false;
	}

	if(document.join.tel23.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.tel23.focus();
		return false;
	}
	
	if(document.join.zipcode1.value == "" || document.join.addr12.value == "") {
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		return false;
	}


	if(document.join.academy.value == "EG" && document.join.branch_idx.value == "") {
		alert("EG¿Ü±¹¾îÇÐ¿øÀÇ ºÐ¿øÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.");
		document.join.branch_idx.focus();
		return false;
	}

	//// ÇÐ»ý / ÀÏ¹Ý ±¸ºÐ ½ÃÀÛ --------------------------------------------------------------------
	if(document.join.cl.value == "st") {


		if(document.join.c_school.value == "") {
			alert("ÇöÀç ÀçÇÐÁßÀÎ ÇÐ±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.c_school.focus();
			return false;
		}

		if(document.join.h_school.value == "") {
			alert("ÁøÇÐÀ» Èñ¸ÁÇÏ´Â ÇÐ±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.h_school.focus();
			return false;
		}

		// ÇÐ³âÁ¤º¸ È®ÀÎ
		if(document.join.grade.value == "") {
			alert("ÇÐ³âÁ¤º¸¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.grade.focus();
			return false;
		}

		// ÇÐ»ý/º¸È£ÀÚ Áßº¹È®ÀÎ
		if(document.join.j_no1.value == document.join.p_j_no1.value) {
			document.join.p_j_no1.value = "";
			document.join.p_j_no2.value = "";
			alert("ÇÐ»ý°ú º¸È£ÀÚÀÇ ÁÖ¹Î¹øÈ£°¡ Áßº¹µË´Ï´Ù. \n\n¿Ã¹Ù¸¥ ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.p_j_no1.focus();
			return false;
		}	

		// ÀÌ¸§ È®ÀÎ
		if(document.join.p_name.value == "") {
			alert("ºÎ¸ð´Ô ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			document.join.p_name.focus();
			return false;
		}

		// ÀÌ¸§ Ã¼Å©(ÇÑ±Û, ¿µ¾î¸¸ °¡´É)
		if(document.join.p_name.value != "") {
			if((document.join.p_name.value.match(/[a-zA-Z°¡-È÷]+/g)) != document.join.p_name.value) {
				document.join.p_name.value = "";
				alert("ÇÑ±ÛÀÌ³ª ¿µ¾î¸¸ °¡´ÉÇÕ´Ï´Ù.");
				document.join.p_name.focus();
				return false;
			}
		}

		// ÁÖ¹Î¹øÈ£ È®ÀÎ
		if(document.join.p_j_no1.value == "" || document.join.p_j_no1.value.length != 6){
			alert("ºÎ¸ð´Ô ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.p_j_no1.focus();
			return false;
		}
		if(document.join.p_j_no2.value == "" || document.join.p_j_no2.value.length != 7){
			alert("ºÎ¸ð´Ô ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.p_j_no2.focus();
			return false;
		}
	}
	//// ÇÐ»ý / ÀÏ¹Ý ±¸ºÐ ³¡ ----------------------------------------------------------------------


	// ÀÔ·ÂÈ®ÀÎ(submit)
	return true;
}

//È¸¿ø °¡ÀÔ½Ã check function 
function log2() {

	// ºñ¹Ð¹øÈ£ È®ÀÎ
	if(document.join.passwd.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.passwd.focus();
		return false;
	}

	// ºñ¹Ð¹øÈ£ ÀçÀÔ·Â È®ÀÎ
	if(document.join.repasswd.value == "") {
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» À§ÇØ ÇÊ¿äÇÕ´Ï´Ù. ¹Ýµå½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.repasswd.focus();
		return false;
	}


	// ºñ¹Ð¹øÈ£ ºñ±³
	if(document.join.passwd.value != document.join.repasswd.value) {
		document.join.repasswd.value = "";
		alert("ºñ¹Ð¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù. ´Ù½Ã È®ÀÎÇÏ¼¼¿ä.");
		document.join.repasswd.focus();
		return false;
	}

	// ÁÖ¹Î¹øÈ£ È®ÀÎ
	if(document.join.j_no1.value == "" || document.join.j_no1.value.length != 6){
		alert("ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.j_no1.focus();
		return false;
	}
	if(document.join.j_no2.value == "" || document.join.j_no2.value.length != 7){
		alert("ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.j_no2.focus();
		return false;
	}
	
	// ÀüÈ­¹øÈ£ È®ÀÎ
	if(document.join.tel21.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.tel21.focus();
		return false;
	}

	if(document.join.tel22.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.tel22.focus();
		return false;
	}

	if(document.join.tel23.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.tel23.focus();
		return false;
	}
	
	if(document.join.zipcode1.value == "" || document.join.addr12.value == "") {
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		return false;
	}

	if(document.join.c_school.value == "") {
		alert("ÇöÀç ÀçÇÐÁßÀÎ ÇÐ±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.join.c_school.focus();
		return false;
	}

	//// ÇÐ»ý / ÀÏ¹Ý ±¸ºÐ ½ÃÀÛ --------------------------------------------------------------------
	if(document.join.cl.value == "st") {

		if(document.join.h_school.value == "") {
			alert("ÁøÇÐÀ» Èñ¸ÁÇÏ´Â ÇÐ±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.h_school.focus();
			return false;
		}

		// ÇÐ³âÁ¤º¸ È®ÀÎ
		if(document.join.grade.value == "") {
			alert("ÇÐ³âÁ¤º¸¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.grade.focus();
			return false;
		}

		// ÇÐ»ý/º¸È£ÀÚ Áßº¹È®ÀÎ
		if(document.join.j_no1.value == document.join.p_j_no1.value) {
			document.join.p_j_no1.value = "";
			document.join.p_j_no2.value = "";
			alert("ÇÐ»ý°ú º¸È£ÀÚÀÇ ÁÖ¹Î¹øÈ£°¡ Áßº¹µË´Ï´Ù. \n\n¿Ã¹Ù¸¥ ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.p_j_no1.focus();
			return false;
		}	

		// ÀÌ¸§ È®ÀÎ
		if(document.join.p_name.value == "") {
			alert("ºÎ¸ð´Ô ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			document.join.p_name.focus();
			return false;
		}

		// ÀÌ¸§ Ã¼Å©(ÇÑ±Û, ¿µ¾î¸¸ °¡´É)
		if(document.join.p_name.value != "") {
			if((document.join.p_name.value.match(/[a-zA-Z°¡-È÷]+/g)) != document.join.p_name.value) {
				document.join.p_name.value = "";
				alert("ÇÑ±ÛÀÌ³ª ¿µ¾î¸¸ °¡´ÉÇÕ´Ï´Ù.");
				document.join.p_name.focus();
				return false;
			}
		}

		// ÁÖ¹Î¹øÈ£ È®ÀÎ
		if(document.join.p_j_no1.value == "" || document.join.p_j_no1.value.length != 6){
			alert("ºÎ¸ð´Ô ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.p_j_no1.focus();
			return false;
		}
		if(document.join.p_j_no2.value == "" || document.join.p_j_no2.value.length != 7){
			alert("ºÎ¸ð´Ô ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
			document.join.p_j_no2.focus();
			return false;
		}
	}
	//// ÇÐ»ý / ÀÏ¹Ý ±¸ºÐ ³¡ ----------------------------------------------------------------------


	// ÀÔ·ÂÈ®ÀÎ(submit)
	return true;
}

// ÁÖ¹Î¹øÈ£ È®ÀÎ
function F_Serial(s1, s2) {
	var j_no1, j_no2;

	j_no1 = s1.value;
	j_no2 = s2.value;

	if (j_no1=='' && j_no1=='') return false;

	var a1=j_no1.substring(0,1);
	var a2=j_no1.substring(1,2);
	var a3=j_no1.substring(2,3);
	var a4=j_no1.substring(3,4);
	var a5=j_no1.substring(4,5);
	var a6=j_no1.substring(5,6);
	var check_digit=a1*2+a2*3+a3*4+a4*5+a5*6+a6*7;
	var b1=j_no2.substring(0,1);
	var b2=j_no2.substring(1,2);
	var b3=j_no2.substring(2,3);
	var b4=j_no2.substring(3,4);
	var b5=j_no2.substring(4,5);
	var b6=j_no2.substring(5,6);
	var b7=j_no2.substring(6,7);
	var check_digit = check_digit+b1*8+b2*9+b3*2+b4*3+b5*4+b6*5;
	check_digit = check_digit%11;
	check_digit = 11 - check_digit;
	check_digit = check_digit%10;

	if(check_digit != b7) {
		alert("Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.\n\n´Ù½Ã È®ÀÎÇÏ°í ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		s1.value = "";
		s2.value = "";
		s1.focus();
		return false;
	}
}

//ÁÖ¹Î ¹øÈ£ ÀÚµ¿ tab
function F_Next(){
		if (document.join.j_no1.value.length ==  6) {
			document.join.j_no2.value = '' ;
			document.join.j_no2.focus();
		}
	}
	
	
//·Î±×ÀÎ check Æû
function form1_check()
{
	if (form1.email.value.replace(/\s/g,"") == "" ) {
		alert("¾ÆÀÌµð(E-mail)¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		form1.email.value = "";
		form1.email.focus();
		return false;	
	}
	if (form1.email.value.replace(/\s/g,"") == "EmailÀ»ÀÔ·ÂÇÏ¼¼¿ä." ) {
		alert("¾ÆÀÌµð(E-mail)¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		form1.email.value = "";
		form1.email.focus();
		return false;	
	}
	if (form1.passwd.value.replace(/\s/g,"") == "" ) {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		form1.passwd.value = "";
		form1.passwd.focus();
		return false;	
	}
	
	return true;
}


//È¸¿ø id / pw Ã£±â Æû
function l_form_check(stype, frm){
		
	if (frm.name_kor.value.replace(/\s/g,"") == "" ) {
		alert("ÀÌ¸§À» ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		frm.name_kor.value = "";
		frm.name_kor.focus();
		return false;	
	}
	
	if (stype == "pw"){
		if (frm.email.value.replace(/\s/g,"") == "" ) {
			alert("¾ÆÀÌµð¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
			frm.email.value = "";
			frm.email.focus();
			return false;	
		}
	}
	
	if (frm.jumin1.value.replace(/\s/g,"") == "" ) {
		alert("ÁÖ¹Î ¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		frm.jumin1.value = "";
		frm.jumin1.focus();
		return false;	
	}
	
	if (frm.jumin2.value.replace(/\s/g,"") == "" ) {
		alert("ÁÖ¹Î ¹øÈ£¸¦ ÀÔ·Â ÇÏ½Ê½Ã¿ä.");
		frm.jumin2.value = "";
		frm.jumin2.focus();
		return false;	
	}
	
	return true;
	
}

//È¸¿ø ¼öÁ¤ check Æû
function modi_form_check(){
	
	// ºñ¹Ð¹øÈ£ È®ÀÎ
	if(document.mode_form.passwd.value == "" || document.mode_form.passwd.value.length < 6 || document.mode_form.passwd.value.length > 20 ) {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä. \n\nºñ¹Ð¹øÈ£´Â 6-20ÀÚ »çÀÌÀÔ´Ï´Ù.");
		document.mode_form.passwd.focus();
		return false;
	}

	// ºñ¹Ð¹øÈ£ ÀçÀÔ·Â È®ÀÎ
	if(document.mode_form.repasswd.value == ""  || document.mode_form.repasswd.value.length < 6 || document.mode_form.passwd.value.length > 20) {
		alert("ºñ¹Ð¹øÈ£ È®ÀÎÀ» À§ÇØ ÇÊ¿äÇÕ´Ï´Ù. ¹Ýµå½Ã ÀÔ·ÂÇÏ¼¼¿ä.");
		document.mode_form.repasswd.focus();
		return false;
	}


	// ºñ¹Ð¹øÈ£ ºñ±³
	if(document.mode_form.passwd.value != document.mode_form.repasswd.value) {
		document.mode_form.repasswd.value = "";
		alert("ºñ¹Ð¹øÈ£°¡ ¸ÂÁö ¾Ê½À´Ï´Ù. ´Ù½Ã È®ÀÎÇÏ¼¼¿ä.");
		document.mode_form.repasswd.focus();
		return false;
	}
	
	// ÀüÈ­¹øÈ£ È®ÀÎ
	if(document.mode_form.tel1.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.mode_form.tel1.focus();
		return false;
	}

	if(document.mode_form.tel2.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.mode_form.tel2.focus();
		return false;
	}

	if(document.mode_form.tel3.value == "") {
		alert("ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.mode_form.tel3.focus();
		return false;
	}	

	if(document.mode_form.zipcode1.value == "" || document.mode_form.addr12.value == "") {
		alert("ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		return false;
	}

	if(document.mode_form.c_school.value == "") {
		alert("ÇöÀç ÀçÇÐÁßÀÎ ÇÐ±³¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		document.mode_form.c_school.focus();
		return false;
	}

	if(document.mode_form.academy.value == "EG" && document.mode_form.branch_idx.value == "") {
		alert("EG¿Ü±¹¾îÇÐ¿øÀÇ ºÐ¿øÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.");
		document.mode_form.branch_idx.focus();
		return false;
	}
	return true;
	
}


// ÁÂÃø level test·Î ÀÌµ¿ÇÏ±â À§ÇÑ ºÎºÐ
function fnTestList() {
	var iPosX;
	var iPosY;
	var src;

	src = "/listLink.htm";

	//alert(document.ifrmSample);
	document.ifrmSample.location.href = src;

	iPosX = event.x;
	iPosY = event.y + this.document.body.scrollTop;

	document.getElementById('TestLink').style.top = iPosY-4;
	document.getElementById('TestLink').style.left = iPosX-4;
	document.getElementById('TestLink').style.display = "";
}


//·Î±×ÀÎÀ» ¾ÈÇßÀ»¶§ º¸¿©ÁÖ´Â alertÃ¢
function not_login(){
	alert("¼­ºñ½º¸¦ ÀÌ¿ëÇÏ±â À§ÇØ¼­´Â ·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.");
	document.body.scrollTop=0;
	form1.email.focus();
	return false;
}

//¾îÈÖ¿¬½À, Ç¥Çö¿¬½À¿¡ ´ëÇÑ ¹Ì±¸¸Å ½Ã º¸¿©ÁÖ´Â alertÃ¢
function not_speak_buy(speak_type)
{
	if (speak_type == "word")
		alert("¾îÈÖ¿¬½ÀÀº ±¸¸Å ÇÏ½Å ÈÄ¿¡ ÀÌ¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.");
	else
		alert("Ç¥Çö¿¬½ÀÀº ±¸¸Å ÇÏ½Å ÈÄ¿¡ ÀÌ¿ëÀÌ °¡´ÉÇÕ´Ï´Ù.");
	return false;
}

//Ä«Æ®¿¡ µé¾îÀÖ´Â ³»¿ëÀ» »èÁ¦ ÇØÁÖ´Â ÇÔ¼ö
function del_car(order_idx, cart_type){
	location.href="/mypage/mypage_cart_process.asp?order_idx="+order_idx+"&cart_type="+cart_type+"&process_mode=del";	
}


//°áÁ¦ÇÒ ³»¿ª ¼±ÅÃÇÑ °Í º¸¿©ÁÖ´Â ÆäÀÌÁö
function sattle(){
	
	var chk = 0;
	//alert(form1.order_idx);
	
	if (form1.order_idx == undefined) {
		return false;		
	}
	
	if (form1.order_idx.length == undefined){
	
		//alert(form1.order_idx.checked);
		if (form1.order_idx.checked == false){
			alert("°áÁ¦ÇÒ ³»¿ªÀ» ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À");
			return false;
		}
		else 
			form1.submit();
			
	}		
	else {
		for (i=0;i<form1.order_idx.length;i++){
			if (form1.order_idx[i].checked == true)
				form1.submit();
			else
				chk++;
		}
	}
	
	if (chk >= 1){
		alert("°áÁ¦ÇÒ ³»¿ªÀ» ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù.");
		return false;
	}
		
	//return false;
	
}


//È¸¿ø Å»Åð¸¦ À§ÇÑ Æû Ã¼Å© ÇÔ¼ö
function withdraw1() {
	if (document.withdraw.name.value == "") {
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		document.withdraw.name.focus();
		return false;
	}	
	if (document.withdraw.email.value == "") {
		alert("ÀÌ¸ÞÀÏ(ID)À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		document.withdraw.email.focus();
		return false;
	}	
	if (document.withdraw.passwd.value == "") {
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		document.withdraw.passwd.focus();
		return false;
	}	
	if (document.withdraw.sn1.value == "") {
		alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		document.withdraw.sn1.focus();
		return false;
	}	
	if (document.withdraw.sn2.value == "") {
		alert("ÁÖ¹Îµî·Ï¹øÈ£ µÞÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		document.withdraw.sn2.focus();
		return false;
	}	
	if (document.withdraw.reason(0).checked==false && document.withdraw.reason(1).checked==false && document.withdraw.reason(2).checked==false && document.withdraw.reason(3).checked==false && document.withdraw.reason(4).checked==false && document.withdraw.reason(5).checked==false) {
		alert("Å»Åð ÀÌÀ¯¸¦ ¼±ÅÃÇØ ÁÖ½Ê½Ã¿À.");
		return false;
	}

	if(confirm("Å»Åð ÇÏ½Ã°Ú½À´Ï±î?")) withdraw.submit();
}


//¾îÈÖ ¿¬½À ¹× Ç¥Çö ¿¬½À ¿ÀÇÂ ÇÔ¼ö
function exam_sp(smode,speak_seq){
	if(smode == "1")
		url = "/exam/exam_sp.asp";
	else
		url = "/exam/exam_vp.asp";
		
	window.open(url+"?speak_seq="+speak_seq,"exam_win","height=621,width=886");
}

//iBT ¸ðÀÇ FULL TEST¸¦ ½ÇÇàÇÏ±â È£Ãâ ÇÔ¼ö -> OCX È®ÀÎ ¹× ¼³Ä¡ ¸ÕÀú~!
function exam2(exam_seq, order_idx, email, retry){
	var w = 800;
	var h = 600;
	var l = (screen.width-w)/2;
	var t = (screen.height-h)/2;
	var u = "/exam/ibt_ocx_install.asp?exam_seq="+exam_seq+"&order_idx="+order_idx+"&email="+email+"&retry="+retry;
	var n = "exam_win";
	popExam = window.open(u, n, 'top='+t+',left='+l+',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width='+w+', height='+h);
	popExam.opener = self;
	popExam.focus();
}


//iBT ¸ðÀÇ FULL TEST¸¦ ½ÇÇàÇÏ±â È£Ãâ ÇÔ¼ö(CHROMELESSWIN)
function exam_chrom(URL){
	//window.open("/exam/IBT_TEST_MAIN.asp?exam_seq="+exam_seq+"&order_idx="+order_idx+"&userid="+email+"&retry="+retry,"exam_win","height=600,width=800");
	//window.open("/exam/ibt_ocx_install.asp?exam_seq="+exam_seq+"&order_idx="+order_idx+"&userid="+email+"&retry="+retry,"exam_win","height=600,width=800");
	//theURL="/exam/ibt_ocx_install.asp?exam_seq="+exam_seq+"&order_idx="+order_idx+"&userid="+email+"&retry="+retry;  // °øÁöÃ¢À¸·Î ¿­ ¹®¼­¸í 
	theURL=URL;
	wname ="CHROMELESSWIN" 
	W=800; 
	H=600; 
	windowCERRARa			= "/image/crom/close_a.gif" 
	windowCERRARd			= "/image/crom/close_a.gif" 
	windowCERRARo			= "/image/crom/close_o.gif" 
	windowNONEgrf			= "/image/crom/none.gif" 
	windowCLOCK				= "/image/crom/clock.gif" 
	windowREALtit			= "iBT Toefl Test" 
	windowTIT				= " <font face=arial size=1 color=white>iBT Toefl Test</font>" // °øÁöÃ¢ÀÇ Å¸ÀÌÆ²¹Ù¿¡ ³ªÅ¸³ª´Â Å¸ÀÌÆ² 
	windowBORDERCOLOR		= "#444444" // Å×µÎ¸® »ö»ó 
	windowBORDERCOLORsel	= "#444444" // Å¬¸¯½Ã Å×µÎ¸®»ö 
	windowTITBGCOLOR		= "#444444" // Å¸ÀÌÆ²¹Ù ¹è°æ»ö 
	windowTITBGCOLORsel		= "#444444" // Å¬¸¯½Ã Å¸ÀÌÆ²¹Ù ¹è°æ»ö 
	openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel) 
}

//iBT ¸ðÀÇ FULL TEST¸¦ ½ÇÇàÇÏ±â È£Ãâ ÇÔ¼ö
function exam(exam_seq, order_idx, email, retry){
	exam_chrom("/exam/pre_exam_chk.asp?exam_seq="+exam_seq+"&order_idx="+order_idx+"&userid="+email+"&retry="+retry);
}

//¹«·á IBT TEST¸¦ ÇÒ ¼ö ÀÖµµ·Ï Ã³¸®ÇÏ´Â ÇÔ¼ö
function exam_free(exam_seq, email){
	//window.open("/exam/ibt_online_free_process.asp?testkey="+exam_seq+"&username="+email,"exam_win","height=600,width=800");
	//exam_chrom("/exam/pre_exam_chk.asp?exam_seq="+exam_seq+"&userid="+email+"&direct_type=free");
	window.open("/exam/pre_exam_chk.asp?exam_seq="+exam_seq+"&userid="+email+"&direct_type=free","exam_win","fullscreen=1");
}

//¿ÉÆ¼¸¶ÀÌÁ® È£Ãâ ÇÔ¼ö
function optimizer()
{
	window.open("/optimizer/Optimizer.html","optimizer","height=385,width=680");
}

//¹è°æ Áö½Ä °ü·Ã ³»¿ª »Ì¾Æ ³»´Â°÷
function F_Question(w_width, w_height, w_name, w_url, scroll_yn){
	var objWin;
	var l = (screen.width-w_width)/2;
	var t = (screen.height-w_height)/2;
	Status='top='+t+',left='+l+',toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width='+w_width+', height='+w_height;
	objWin = window.open(w_url, w_name, Status);
	objWin.opener = self; 
	objWin.focus();
}


//¿ìÃø À§·Î °¡±â ¹öÆ° µû¶ó´Ù´Ï´Â ºÎºÐ »ç¿ë ÇÔ¼ö
var stmnLEFT = 947;				// ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
var stmnGAP1 = 0;				// ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é
var stmnGAP2 = 560;				// ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
var stmnBASE = screen.height;	// ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)
var stmnActivateSpeed = 50;		// ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
var stmnScrollSpeed = 10;		// ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)
var stmnTimer;

function ReadCookie(name) {
	var label = name + "=";
	var labelLen = label.length;
	var cLen = document.cookie.length;
	var i = 0;
	
	while (i < cLen) {
	        var j = i + labelLen;
	
	        if (document.cookie.substring(i, j) == label) {
	                var cEnd = document.cookie.indexOf(";", j);
	                if (cEnd == -1) cEnd = document.cookie.length;
			return unescape(document.cookie.substring(j, cEnd));
	        }
			i++;
	  }
  return "";
}

function RefreshStaticMenu() {
	var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
	
	stmnStartPoint = parseInt(STATICMENU.style.top, 10);
	stmnEndPoint = document.body.scrollTop + stmnGAP2;
	if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;
	
	stmnRefreshTimer = stmnActivateSpeed;
	
	if ( stmnStartPoint != stmnEndPoint ) {
	        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 20 );
	        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
	        stmnRefreshTimer = stmnScrollSpeed;
    }
    stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
}

function InitializeStaticMenu() {
	STATICMENU.style.left = stmnLEFT;

	ReadCookie("ANIMATE");
	STATICMENU.style.top = document.body.scrollTop + stmnBASE;
	RefreshStaticMenu();
}




//¹öÀü¿¡ ¸Âµµ·Ï msxml °´Ã¼¸¦ »ý¼º½ÃÅ²´Ù.
function xmlHttpRequest()
{
    var msxmlLists = new Array(
            'Msxml2.XMLHTTP.5.0',
            'Msxml2.XMLHTTP.4.0',
            'Msxml2.XMLHTTP.3.0',
            'Msxml2.XMLHTTP',
            'Microsoft.XMLHTTP'
        );
    
    for(var i=0; i < msxmlLists.length; i++)
    {
        try
        {
            return new ActiveXObject(msxmlLists[i]);
        }
        catch(ex){}
    }
    return null;
}


// °­ÁÂ µè±â ¿Ï·á ½Ã ¿Ï·á ½Ã°£ DB¿¡ updateÇØ ÁÖ´Â ÇÔ¼ö
function course_end(lj_seq){

	var xmlHTTP;
	xmlHTTP = new xmlHttpRequest(); 
	var URL;
	URL = "/course/course_end.asp?lj_seq="+lj_seq;
	
	xmlHTTP.open("GET",URL,false); 
	
	xmlHTTP.send();		
}


// °í°´¼¾ÅÍ ¸ÞÀÏ º¸³»±â check Æû
function service_mail(){
	if (mail_form.f_name.value == '') {
		alert('ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		mail_form.f_name.focus();
		return false;
	}
	if (mail_form.f_email.value == '') {
		alert('ÀÌ¸ÞÀÏÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		mail_form.f_email.focus();
		return false;
	}
	if (mail_form.f_cont.value == '') {
		alert('³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.');
		mail_form.f_cont.focus();
		return false;
	}

	return true;
}

function popZipsearch(fName){
	var w = 420;
	var h = 400;
	var url = "/mypage/zip_search.asp?f="+fName;
	winZip = window.open(url, 'winZip', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width='+w+', height='+h);
	winZip.opener = self; 
	winZip.focus();
}

function vod_play(pUrl, w, h) {
	str = "<object id=\"NSPlay\" width="+w+" height="+h+" viewastext style=\"z-index:1\" classid=\"CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" standby=\"Loading Microsoft Windows Media Player components...\" type=\"application/x-oleobject\">"
		+ "<param name=\"FileName\" value=\""+pUrl+"\">"
		+ "<param name=\"ANIMATIONATSTART\" value=\"1\">"
		+ "<param name=\"AUTOSTART\" value=\"1\">"
		+ "<param name=\"BALANCE\" value=\"0\">"
		+ "<param name=\"CURRENTMARKER\" value=\"0\">"
		+ "<param name=\"CURRENTPOSITION\" value=\"0\">"
		+ "<param name=\"DISPLAYMODE\" value=\"4\">"
		+ "<param name=\"ENABLECONTEXTMENU\" value=\"0\">"
		+ "<param name=\"ENABLED\" value=\"1\">"
		+ "<param name=\"FULLSCREEN\" value=\"0\">"
		+ "<param name=\"INVOKEURLS\" value=\"1\">"
		+ "<param name=\"PLAYCOUNT\" value=\"1\">"
		+ "<param name=\"RATE\" value=\"1\">"
		+ "<param name=\"SHOWCONTROLS\" value=\"1\">"
		+ "<param name=\"SHOWSTATUSBAR\" value=\"-1\">"
		+ "<param name=\"STRETCHTOFIT\" value=\"0\">"
		+ "<param name=\"TRANSPARENTATSTART\" value=\"0\">"
		+ "<param name=\"UIMODE\" value=\"FULL\">"
		+ "<param name=\"displaybackcolor\" value=\"0\">"
		+ "</object>";
	documentWrite(str);
}

function showKnMovie(movie_name){
	vod_play('mms://www.toeflcafe.com/Kn_Movie/'+movie_name, '420', '370');
}

function chkEmail(elmt)
{
	strMail=new String(elmt.value);
	mailre=/^[\w\.]+\@(\w+\.)+\w+$/;
	if( strMail!='' && !mailre.test(strMail))
	{
		alert("You should enter your e-mail address containing @.");
		elmt.value="";
		elmt.focus();
		return false;
	}
}
