function flashMovie1(w,h,flashName,num){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+flashName+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="FlashVars" value="selectArea='+num+'&">');
document.write('<embed src="'+flashName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'">');
document.write('</embed>');
document.write('</object>');
}

//function flashMC(w,h,flashName){
function flashMovie(w,h,flashName){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">');
document.write('<param name="movie" value="'+flashName+'">');
document.write('<param name="quality" value="high">');
document.write('<param name=wmode value=transparent>');
document.write('<PARAM NAME=wmode VALUE=opaque>');
document.write('<embed src="'+flashName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>');
document.write('</embed>');
document.write('</object>');
}


var URL="/html";
//******** ÇùÈ¸¾÷¹« *****************
function subMenu01(num){
	if(num==1){
		location.href=URL+"/business/bmintro.asp";
	}else if(num==2){
		location.href=URL+"/business/bcmnotice.asp";
	}else if(num==3){
		location.href=URL+"/business/bcmconfirm.asp";
	}else if(num==4){
		location.href=URL+"/business/binspect.asp";
	}else if(num==5){
		location.href=URL+"/business/bcmlearn.asp";
	}else if(num==6){
		location.href=URL+"/business/bcmedu.asp";
	}else if(num==7){
		location.href=URL+"/business/bcmherald.asp";
	}
}

//******** CMÀÚ·á¹æ *****************
function subMenu02(num){
	if(num==1){
		location.href=URL+"/cmdata/cm1.asp";
	}else if(num==2){
		location.href=URL+"/cmdata/cmlow.asp";
	}else if(num==3){
		location.href=URL+"/cmdata/cmreport.asp";
	}else if(num==4){
		location.href=URL+"/cmdata/cmexample.asp";
	}else if(num==5){
		location.href=URL+"/cmdata/cmsemina.asp";
	}else if(num==6){
		location.href=URL+"/cmdata/cmve.asp";
	}else if(num==7){
		location.href=URL+"/cmdata/cmexpert.asp";
	}else if(num==8){
		location.href=URL+"/cmdata/cmspeical.asp";
	}else if(num==9){
		location.href=URL+"/cmdata/cmetc.asp";
	}
}

//******** ¾Ë¸²¸¶´ç *****************
function subMenu03(num){
	if(num==1){
		location.href=URL+"/notice/news.asp";
	}else if(num==2){
		location.href=URL+"/notice/ntrnder.asp";
	}else if(num==3){
		location.href=URL+"/notice/nlow.asp";
	}else if(num==4){
		location.href=URL+"/notice/nleague1.asp?code=1";
	}else if(num==5){
		location.href=URL+"/notice/nwind.asp";
	}else if(num==6){
		location.href=URL+"/notice/norg.asp";
	}
}

//******** Âü¿©¸¶´ç *****************
function subMenu04(num){
	if(num==1){
		location.href=URL+"/free/faq.asp";
	}else if(num==2){
		location.href=URL+"/free/freeboard.asp";
	}else if(num==3){
		location.href=URL+"/free/poll.asp";
	}else if(num==4){
		location.href=URL+"/free/gallery.asp";
	}else if(num==5){
		location.href=URL+"/free/wanted.asp";
	}else if(num==6){
		location.href=URL+"/free/hunting.asp";
	}
}

//******** ÇùÈ¸¼Ò°³ *****************
function subMenu05(num){
	if(num==1){
		location.href=URL+"/intro/igreeting.asp";
	}else if(num==2){
		location.href=URL+"/intro/iobject.asp";
	}else if(num==3){
		location.href=URL+"/intro/imember.asp";
	}else if(num==4){
		location.href=URL+"/intro/ipartjob.asp";
	}else if(num==5){
		location.href=URL+"/intro/iarticles1.asp";
	}else if(num==6){
		location.href=URL+"/intro/imap.asp";
	}
}

//******** °ü·Ã»çÀÌÆ® *****************
function subMenu06(num){
	if(num==1){
		location.href=URL+"/reference/rinternal.asp";
	}else if(num==2){
		location.href=URL+"/reference/rinternal.asp?code=1";
	}else if(num==3){
		location.href=URL+"/reference/rinternal.asp?code=2";
	}else if(num==4){
		location.href=URL+"/reference/rinternal.asp?code=3";
	}
}



//******** seminarLink *****************
function seminarLink(num){
	if(num==1){
		POP = window.open('http://www.cmak.or.kr/cmak_popup/evms/20060817_popup_evms.htm', "win1", "status=0,scrollbars=no,resizable=0,width=400,height=440" );
		POP.focus();
	}else if(num==2){
		location.href="http://www.kiscon.net/pcm/pcm_info.asp";
	}else if(num==3){
		POP = window.open('http://www.cmak.or.kr/cmak_popup/consma/cm_consma_pop2.htm', "", "status=0,scrollbars=no,resizable=0,width=550,height=750" );
		POP.focus();
	}else if(num==4){
		POP = window.open('http://www.cmak.or.kr/cmak_popup/cminfo/20070509_cmifo01.html', "", "status=0,scrollbars=no,resizable=0,width=790,height=600" );
		POP.focus();
	}
}


////////////////	·Î±×ÀÎ ¾ÆÀÌµð,ÆÐ½º¿öµå input box ¿¡ ¾ÆÀÌµð,ÆÐ½º¿öµå text ±âº» ¼³Á¤ÇØ ÁÖ±â
window.onload = function() {
//function hamso() {
    document.getElementById("cmak_id").value = "¾ÆÀÌµð"
    document.getElementById("cmak_pw").value = "ºñ¹Ð¹øÈ£"
}
var inputField = "";

function msg(var1, var2, var3) {
    if(var1 == "") {
        document.getElementById(var2).value = var3;
    } else {
        document.getElementById(var2).value = var1;
    }
}

function delAlt(obj, elm, chk) {
    document.getElementById(elm).value = inputField;
    document.getElementById(elm).onblur = function () {msg(this.value, elm, chk)};
}

////////////////	·Î±×ÀÎ ¾ÆÀÌµð,ÆÐ½º¿öµå input box ¿¡ ¾ÆÀÌµð,ÆÐ½º¿öµå text ±âº» ¼³Á¤ÇØ ÁÖ±â ³¡	/////////////

