
function CashAccount(md) {
	if(md == 'P') {
		win = window.open('/cash/pop_premium.asp','payStart','width=400,height=150,menubar=no,toolbar=no,scrollbars=no,status=no');
		win.focus();
	} else if(md == 'G') {
		win = window.open('/cash/pop_general.asp','payStart','width=400,height=150,menubar=no,toolbar=no,scrollbars=no,status=no');
		win.focus();
	} else if(md == 'I') {
		win = window.open('/cash/pop_premium.asp?gubun=infant','payStart','width=400,height=150,menubar=no,toolbar=no,scrollbars=no,status=no');
		win.focus();
	}
}

function cashShortage(cash) {
	if(confirm('º» ÀÚ·á´Â '+cash+'Ä³½¬°¡ ÇÊ¿äÇÕ´Ï´Ù.\n\nÃæÀüÇÏ½Ã°Ú½À´Ï±î?')) {
		CashAccount('G');
	}
}

function NoExam(){
	alert("¾÷µ¥ÀÌÆ®Áß ÀÔ´Ï´Ù!");
}

function errorMsg(error_str) { //¿¡·¯¸Þ¼¼Áö ¸ð´ÞÃ¢À¸·Î ¶ç¿ì±â
	showModalDialog('http://www.chamgyo.com/libs/error.asp?error_str='+error_str, window,'dialogWidth:305px; dialogHeight:245px; center:yes;center=yes; screenTop=yes; scroll=no; status=no; help=no;');
}

function ch () {
	document.psearch.search.style.backgroundImage="";
}

function go_cash() {
	opener.location.href = 'http://www.chamgyo.com/cash/new_index_premium.asp';
	self.close();
}

function Login(){ //Main ·Î±×ÀÎ
		if(document.login.id.value == "" | document.login.id.value == "ID"){
			errorMsg("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä",document.login.name,document.login.id.name,'no','no');
		}else if(document.login.pass.value == "" | document.login.pass.value == "PASS"){
			errorMsg("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä",document.login.name,document.login.pass.name,'no','no');
		}else{
			login.submit();
		}
}

function LoginCheck(id){ //·Î±×ÀÎÀ» ÇßÀ»±î?
		sessionvalue = id;
		if(sessionvalue == ''){
			errorMsg("·Î±×ÀÎÀ» ÇÏ¼Å¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
			return false;
		}
}

function VoteCheck(){
		if(document.votes.sur.value == ""){
			errorMsg("Ç×¸ñÀ» ¼±ÅÃÇÏ¿© ÁÖ¼¼¿ä");
			return false;
		}else{
			votes.submit();
		}
}

function Memo_Size(type)
{
	fom = this.document.all["memo"];
	switch(type)
	{
		case "+" :
			fom.Memo.rows += 4;
			break;
		case "-" :
			if( fom.Memo.rows > 4 )
				fom.Memo.rows -= 4;
			break;
	}
}

function MemoCheck(){ //Power°Ë»ö
		if(document.memo.Memo.value == ""){
			errorMsg("²¿¸®¸»ÀÇ ³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä");
			return false;
		}else{			
			memo.submit();
			return true;
		}
}

function getCookie( name ){ //ÄíÅ°°ª °¡Á®¿À±â
		var nameOfCookie = name + "=";
		var x = 0;
		while ( x <= document.cookie.length )
		{
			var y = (x+nameOfCookie.length);
			if ( document.cookie.substring( x, y ) == nameOfCookie ) {
				if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
				endOfCookie = document.cookie.length;
				return unescape( document.cookie.substring( y, endOfCookie ) );
			}
				
			x = document.cookie.indexOf( " ", x ) + 1;
				
			if ( x == 0 ) break;
		}
				return "";
	}

function setCookie( name, value, expiredays ) { //ÄíÅ° ¼³Á¤ÇÏ±â
		var todayDate = new Date(); 
		todayDate.setDate( todayDate.getDate() + expiredays ); 
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
}

function autolink(id) { //ÆäÀÌÁö³»ÀÇ ¿ÀÅä¸µÅ©°É±â
var container = document.getElementById(id); 
var doc = container.innerHTML; 
var regURL = new RegExp("(http|https|ftp|telnet|news|irc)://([-/.a-zA-Z0-9_~#%$?&=:200-377()]+)","gi"); 
var regEmail = new RegExp("([xA1-xFEa-z0-9_-]+@[xA1-xFEa-z0-9-]+.[a-z0-9-]+)","gi"); 
container.innerHTML = doc.replace(regURL,"<a href='$1://$2' target='_blank'>$1://$2</a>").replace(regEmail,"<a href='mailto:$1'>$1</a>"); 
} 

function AddTable(a){
	if(a != 1){
		table.style.display='block';
	}else{
		table.style.display='none';
	}
}

function d415Pop() {    //ÄÚ¸àÆ® »õÃ¢
	window.open('','d415','toolbar=no,scrollbars=no,resizable=no,width=300,height=250,left=300,top=200');	
}

function NewPop(URL) {    //ÄÚ¸àÆ® »õÃ¢
	window.open(URL,'pop1','toolbar=no,scrollbars=no,resizable=no,width=500,height=300');	
}

function State(URL) {    //ÄÚ¸àÆ® »õÃ¢
	window.open(URL,'state','toolbar=no,scrollbars=no,resizable=no,width=440,height=550');	
}

function Charge(URL,a) {    //ÄÚ¸àÆ® »õÃ¢
	window.open(URL+'?num='+a,'charge','toolbar=yes,scrollbars=no,resizable=no,width=400,height=200');
}

//** »õÃ¢ ¶ç¿ì±â
var myWin = null;
function newWin(url,name,w,h,left,top,scroll) {
	var pLeft, pTop;
	if(left == "random") {
		pLeft = (screen.width)  ? Math.floor(Math.random()*(screen.width-w)) : 100;
	} else if(left == "center") {
		pLeft = (screen.width)  ? (screen.width-w)/2 : 100;
	} else if(left != "") {
		pLeft = left;
	} else {
		pLeft = 5;
	}

	if(top == "random") {
		pTop = (screen.height) ? Math.floor(Math.random()*((screen.height-h)-75)) : 100;
	} else if (top == "center") {
		pTop = (screen.height) ? (screen.height-h)/2 : 100;
	} else if(top != "") {
		pTop = top;
	} else {
		pTop = 5;
	}

	var settings = "width="+w+",height="+h+",top="+pTop+",left="+pLeft+",scrollbars="+scroll+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";
	myWin = window.open(url,name,settings);
	myWin.focus();
}

function NewWindow(mypage,myname,w,h,tool,scroll){	//°¡¿îµ¥Ã¢
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='toolbar='+tool+',';
	  settings +='scrollbars='+scroll+',';
      settings +='resizable=no';
  win = window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.focus();}
}

function ChamgyoParent(URL)
{
	win = window.open(URL,'chamgyoMain');
	win.focus();
}

function popupImage(imageURL) 
{ 
  imageHandle=open("","popupForImage","toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,resizable=yes,width=100,height=100,top=200,left=200"); 
  imageHandle.document.write("<title>Image View</title>"); 
  imageHandle.document.write("<style>"); 
  imageHandle.document.write("*{margin:0;padding:0;border:0;}"); 
  imageHandle.document.write("</style>"); 
  //imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(800,600);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"Å¬¸¯ÇÏ¸é ´ÝÈü´Ï´Ù.\">"); 
  imageHandle.document.write("<img src=\""+imageURL+"\" onload=\"window.resizeTo(this.width+25,this.height+30);\" onclick=\"self.close();\" style=\"cursor:hand;\" title=\"Å¬¸¯ÇÏ¸é ´ÝÈü´Ï´Ù.\">"); 
}

function Keydown() { //Å°º¸µå ÀÌº¥Æ®¸·±â
	var a = event.keyCode;
	if(a == 122){ 
		event.keyCode= 38;
		return false;
	}
	else{
		event.keyCode = a;
		return true;
	}
	
}

function CheckKeys() {// ¼ýÀÚ¸¸ ÀÔ·Â ¹Þ°Ô 
	if(( event.keyCode >= 97 && event.keyCode <= 122) || (event.keyCode >=65 && event.keyCode <=90)) 
	{ 
	event.keyCode=0; 
	} 
}

function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function

function SelectKin(url){
	if(confirm('´äº¯À¸·Î Ã¤ÅÃÇÏ½Ã°Ú½À´Ï±î?') == true){
		location.href = url;
	}
}

function KinDel(url){
	if(confirm('»èÁ¦ÇÏ½Ã¸é ¾à°£ÀÇ Æä³ÎÆ¼°¡ Àû¿ëµË´Ï´Ù. ÇÏ½Ã°Ú¾î¿ä?') == true){
		location.replace(url);
	}
}

function go_sub(a){
	var a;
	switch(a){
		case 0 :
			location.replace('http://www.chamgyo.com/');
		break;
		case 1 :
			NewWindow('http://www.chamgyo.com/myshop/','myshopView',985,640,'n','n');
		break;
		case 2 :
			location.replace('http://www.chamgyo.com/file/');
		break;
		case 3 :
			location.replace('http://www.chamgyo.com/xfile/');
		break;
		case 4 :
			location.replace('http://www.chamgyo.com/class/primary/');
		break;
		case 5 :
			location.replace('http://www.chamgyo.com/kin/');
		break;
		case 6 :
			location.replace('http://www.chamgyo.com/club/');
		break;
		case 7 :
			alert('ÁØºñÁßÀÔ´Ï´Ù');
			//location.replace('http://www.chamgyo.com/avata/');
		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 teacher_sub(num){
	if(num == "1") {		location.replace('/teacher/students.asp');
	} else if(num == "2") {	location.replace('/teacher/month_jindo.asp?grades=1');
	} else if(num == "3") {	location.replace('/teacher/month_jindo.asp?grades=1');
	} else if(num == "4") {	location.replace('/teacher/middle_jindo.asp?grades=7');
	} else if(num == "5") {	location.replace('/teacher/flash_index.html?code=1');
	} else if(num == "6") {	location.replace('/teacher/middle_index.asp');
	} else if(num == "7") {	location.replace('/teacher/test.asp');
	} else if(num == "8") {	location.replace('http://www.chamgyo.com/file2/');
	} else if(num == "9") {	location.replace('/teacher/students.asp');
	} else if(num == "10") {	location.replace('/teacher/student_register.asp');
	} else if(num == "11") {	location.replace('/teacher/parent_register.asp');
	} else if(num == "12") {	NewWindow('/lib/settlement_net.htm','pay',550,260,'no','no');
	} else if(num == "13") {	location.replace('/index_bbs.asp?code1=1&code2=1');
	} else if(num == "14") {	location.replace('/index_bbs.asp?code1=1&code2=3');
	} else if(num == "15") {	location.replace('/student/index_happy.asp?type=han1');
	} else if(num == "16") {	location.replace('../cafe/');
	} else if(num == "17") {	NewWindow('/student/month_exam.asp','exam',645,400);
	} else if(num == "18") {	location.replace('/student/index_happy.asp?type=han1');
	} else if(num == "19") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/thema_e.asp','eng1',700,600);
	} else if(num == "20") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/board_super.asp','eng4',700,600);
	} else if(num == "21") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/thema_h.asp','han2',700,600);
	} else if(num == "22") {	location.replace('/student/index_happy.asp?type=eng2');
	} else if(num == "23") {	location.replace('/student/index_happy.asp?type=eng5');
	} else if(num == "24") {	location.replace('/student/index_happy.asp?type=han3');
	} else if(num == "25") {	NewWindow('http://happyclass.com/data/newdemo/eng/eng_index.html','eng3',700,600);
	} else if(num == "26") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/board_story.asp','eng6',700,600);
	} else if(num == "27") {	location.replace('/teacher/month_jindan.asp?search=4&dir2=00&dir3=000');
	} else { errorMsg('Àß¸øµÈ °æ·Î·Î Á¢¼ÓÇÏ¼Ì½À´Ï´Ù.'); }
}
function cho_sub(num){
	if(num == "1") {		NewWindow('/lecture.asp','lec',1,1,'no','no');
	} else if(num == "2") {	location.replace('/student/month_jindo.asp');
	} else if(num == "3") {	location.replace('/student/month_jindo.asp');
	} else if(num == "4") {	location.replace('/sample/happy_index.html');
	} else if(num == "5") {	location.replace('/student/test.asp');
	} else if(num == "6") {	location.replace('/student/studied_list.asp');
	} else if(num == "7") {	location.replace('/student/test_result.asp');
	} else if(num == "8") {	location.replace('/student/student_attend.asp');
	} else if(num == "9") {	location.replace('/student/index_happy.asp?type=han1');
	} else if(num == "10") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/thema_e.asp','eng1',700,600);
	} else if(num == "11") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/board_super.asp','eng4',700,600);
	} else if(num == "12") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/thema_h.asp','han2',700,600);
	} else if(num == "13") {	location.replace('/student/index_happy.asp?type=eng2');
	} else if(num == "14") {	location.replace('/student/index_happy.asp?type=eng5');
	} else if(num == "15") {	location.replace('/student/index_happy.asp?type=han3');
	} else if(num == "16") {	NewWindow('http://happyclass.com/data/newdemo/eng/eng_index.html','eng3',700,600);
	} else if(num == "17") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/board_story.asp','eng6',700,600);
	} else if(num == "18") {	location.replace('../cafe/');
	} else if(num == "19") {	NewWindow('/student/month_exam.asp','exam',645,400);
	} else { errorMsg('Àß¸øµÈ °æ·Î·Î Á¢¼ÓÇÏ¼Ì½À´Ï´Ù.'); }
}
function mid_sub(num){
	if(num == "1") {		location.replace('/student/month_jindo.asp');
	} else if(num == "2") {	location.replace('/student/month_jindo.asp');
	} else if(num == "3") {	location.replace('/sample/happy_index.html');
	} else if(num == "4") {	location.replace('/student/test.asp?bcate=7&scate=18');
	} else if(num == "5") {	location.replace('/student/studied_list.asp');
	} else if(num == "6") {	location.replace('/student/test_result.asp');
	} else if(num == "7") {	location.replace('/student/student_attend.asp');
	} else if(num == "8") {	location.replace('/student/index_happy.asp?type=han1');
	} else if(num == "9") {		NewWindow('http://www.happyclass.com/chamgyo/student/study/thema_e.asp','eng1',700,600);
	} else if(num == "10") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/board_super.asp','eng4',700,600);
	} else if(num == "11") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/thema_h.asp','han2',700,600);
	} else if(num == "12") {	location.replace('/student/index_happy.asp?type=eng2');
	} else if(num == "13") {	location.replace('/student/index_happy.asp?type=eng5');
	} else if(num == "14") {	location.replace('/student/index_happy.asp?type=han3');
	} else if(num == "15") {	NewWindow('http://www.happyclass.com/data/eng/engindex.html','eng3',700,600);
	} else if(num == "16") {	NewWindow('http://www.happyclass.com/chamgyo/student/study/board_story.asp','eng6',700,600);
	} else if(num == "17") {	location.replace('../cafe/');
	} else { errorMsg('Àß¸øµÈ °æ·Î·Î Á¢¼ÓÇÏ¼Ì½À´Ï´Ù.'); }
}
function student_sub(num){
	if(num == "1") {		NewWindow('/lecture.asp','lec',1,1,'no','no');
	} else if(num == "2") {	location.replace('/student/month_jindo.asp');
	} else if(num == "3") {	location.replace('/student/studied_list.asp');
	} else if(num == "4") {	location.replace('/student/attend.html');
	} else if(num == "5") {	location.replace('/student/test_result.html');
	} else if(num == "6") {	location.replace('../cafe/');
	} else { errorMsg('Àß¸øµÈ °æ·Î·Î Á¢¼ÓÇÏ¼Ì½À´Ï´Ù.'); }
}
function parent_sub(num){
	if(num == "1") {		location.replace('/parent/');
	} else if(num == "2") {	location.replace('/parent/month_jindo.asp?grades=1');
	} else if(num == "3") {	location.replace('/parent/my_baby.asp');
	} else if(num == "4") {	location.replace('../cafe/');
	} else { errorMsg('Àß¸øµÈ °æ·Î·Î Á¢¼ÓÇÏ¼Ì½À´Ï´Ù.'); }
}


function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

function na_hide_layer(lname)
{
  if (document.layers)
    document.layers[lname].visibility = 'hide'    
  if(document.all)
    document.all(lname).style.visibility = 'hidden' 
}

function na_show_layer(lname)
{
 if (lname == '') return;
 
 var layer  = document.all ? document.all(lname).style : document.layers[lname];
 var show  = document.all ? 'visible' : 'show';
 var hide  = document.all ? 'hidden' : 'hide';
 
 if (na_show_layer.arguments.length <= 1)
  layer.visibility = show;
 else
  layer.visibility = (na_show_layer.arguments[1] == 0 ? show : hide);
}

function MainMenu(cd){

	if(cd=='')return false;
	
	if(cd=='1'){
		location.href="http://www.chamgyo.com/file2/index.asp?code=02";
	}else if(cd=='2'){
		location.href="http://www.chamgyo.com/file/index.asp?code=01";
	}else if(cd=='3'){
		location.href="http://www.chamgyo.com/kin/";
//	}else if(cd=='15'){
//		location.href="http://www.chamgyo.com/class/primary/";
	}else if(cd=='4'){
		location.href="http://www.chamgyo.com/class/primary/";
	}else if(cd=='5'){
		location.href="http://www.chamgyo.com/class/middle/";
	}else if(cd=='6'){
		location.href="http://www.chamgyo.com/class/general/";
	}else if(cd=='7'){
//		location.href="http://www.chamgyo.com/etest/main.php";
		location.href="http://www.chamgyo.com/exam/test_index.php";
	}else if(cd=='8'){
		location.href="http://www.chamgyo.com/index_myshop_list.asp";
	}else if(cd=='9'){
		location.href="http://www.chamgyo.com/community2/";
	}else if(cd=='10'){
		location.href="http://www.chamgyo.com/event/";
		return;
	}else if(cd=='11'){
		alert('ÁØºñÁßÀÔ´Ï´Ù');
		//location.href="http://www.chamgyo.com/avata_shop/index.asp";
	}else if(cd=='12'){
		location.href="http://www.chamgyo.com/exam/test_index.php";

	}else if(cd=='13'){ //ÇÁ¸®ÆÐ½ºÈ¸¿ø °áÁ¦
		location.href="http://www.chamgyo.com/class/general/index.asp";
//		var win=window.open('./out_company/out_cash/kcp_freepass/start.php','fpCash','width=50,height=50,menubar=no,toolbar=no,scrollbars=no,status=no');
//		win.focus();
	}else if(cd=='14'){ //Âü±³´åÄÄÈ¸¿ø °áÁ¦
		location.href="http://www.chamgyo.com/cash/new_index_premium.asp";
	}else if(cd=='20'){
		location.href="http://www.chamgyo.com/class/infant/";
	}else if(cd=='21'){ //Ä¿¹Â´ÏÆ¼
		NewWindow("http://myshop.chamgyo.com/index.asp?pm=1","myshopView","985","640","no","yes");
	}

}

//¹è³Ê


function goMenu(cd){

	if(cd=='')return false;
	
	if(cd=='20070402_1'){
		location.href="http://www.chamgyo.com/class/primary/";
	}else if(cd=='20070402_2'){
		location.href="http://www.chamgyo.com/cash/new_index_premium.asp";
	}

}


function  viewFlash(sURL, sName, sFeatures ,sMode) { 

 //ÇÃ·¡½Ã ActiveX ¿ÀºêÁ§Æ®¸¦ »Ñ·ÁÁÝ´Ï´Ù. 
 var FLASHCAB = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"; 
 var FLASHCID = "CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000"; 
 var FLASHVER = "8,0,0,0"; 

 var sFeature; 
 var sWidth  = "100%"; 
 var sHeight  = "100%"; 
 var pmBoolean = "false"; 
 var sTempArray; 
 var sParamTag = ""; 

 sFeature = sFeatures.split(/\s*,\s*/); 
 for (var i=0; i< sFeature.length ; i++) { 

	  sTempArray = sFeature[i].split(/\s*=\s*/); 

	if (sTempArray[0].toLowerCase() == "width") { 
	  //³ÐÀÌ 
		sWidth = sTempArray[1]; 
	} else if (sTempArray[0].toLowerCase() == "height") { 
		//³ôÀÌ 
		sHeight = sTempArray[1]; 
	} else { 
		//±âÅ¸ ÆÄ¶ó¸ÞÅÍ Ã³¸® 
		if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true") { 
			pmBoolean = "true"; 
		} else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false") { 
			pmBoolean = "false"; 
		} else { 
			pmBoolean = sTempArray[1]; 
		} 
		sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag; 
	} 
} 

 document.write("<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+FLASHCID+"' CODEBASE='"+FLASHCAB+"#version="+FLASHVER+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"'>"); 
 document.write("<PARAM NAME='movie' VALUE='" + sURL + "'>"); 
 document.write("<PARAM NAME='wmode' VALUE='" + sMode + "'>"); 
 document.write(sParamTag); 
 document.write("<EMBED SRC='"+sURL+"' MENU='false' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' ID='"+sName+"' NAME='"+sName+"' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' />") 
 document.write("</OBJECT>"); 
} 