function reg_mem(Sname){
  
 	   location.href='/MyQuickFind/myinfo/?Sname='+Sname;	

	}


function send(){

   document.regist.action="http://www.myquickfind.com/scripts/mqf_cp_educh.asp";
   document.regist.submit();
 
}

function bluring()
{ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

function ViewSample( lecture_code )
{
   strURL = "/MyQuickFind/sample/sample.asp?lc=" + lecture_code;
   window.open( strURL, "pe_sample", "width=871,height=601,top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no" );
}


function view_intro(url)
{

     window.open('/myquickfind/sample/'+url+'.html','intro','width=380,height=480');

}

// ÇÐ½À¸ñÂ÷ º¸¿©ÁÖ±â
function ExpandSyllabus( syllabus )
{
     var temp = eval( "document.all." + syllabus + ".style" );
     if( temp.display == "none" )     temp.display = "block";
    else                         temp.display = "none";
}



// °øÅë Æã¼Ç : Ä«Å×°í¸® ÄÚµå¸¦ ¹Þ¾Æ¼­ ÁöÁ¤µÈ ÆäÀÌÁö·Î ÀÌµ¿

function jhj_GoCategoryLecture(actionUrl, clstype, g_code, m_code )
{
	var go_url, add_url, param_ary;
	var i;
	i = 0;
	add_url = "";
	go_url = actionUrl;

	param_ary = Array("clstype", "g_code", "m_code" );				// ÆÄ¶ó¹ÌÅÍ ¹è¿­
	sendparam_ary = Array("GL_clstype", "GL_g_code" ,"GL_m_code");	// ³Ñ±æ ÆÄ¶ó¹ÌÅÍ querystrign º¯¼ö ¹è¿­

	while ( i < param_ary.length )
	{
		if( eval(param_ary[i]) == "" )
		{
			break;
		}
	
		if( add_url == "" )
		{
			add_url = sendparam_ary[i] + "=" + eval(param_ary[i])
		} else {
			add_url = add_url + "&" + sendparam_ary[i] + "=" + eval(param_ary[i])
		}

		i = i + 1;
	
	}
		
		go_url = go_url + "?" + add_url
		//alert(go_url);
	
		location = go_url;
}

// °­ÁÂ ¸®½ºÆ®°¡±â
// ¸Þ¸ð : cp_state ( cp ¾÷Ã¼°¡ »èÁ¦µÇ¾ú°Å³ª cp ¾÷Ã¼È°µ¿À¯¹«°¡ no ÀÏ¶§ ) 0À¸·Î Ã³¸®

function jhj_GoLectureList(cp_state,lecListYN, leclist_url, GL_clstype, GL_g_code, GL_m_code, br_width, br_height, targets)
{

	var LectList_url = leclist_url;			// °­ÁÂ ¸®½ºÆ® url
	var param;
	param = "";
	if( cp_state == 0 )
	{
		alert("ÇØ´ç cp ¾÷Ã¼ÀÇ ÄÁÅÙÃ÷ Á¦°ø Áß´ÜÀ¸·Î °­ÁÂ¸¦ ¼ö°­ÇÏ½Ç¼ö ¾ø½À´Ï´Ù!");
		return;
	}
	if( lecListYN == 1 )			// °­ÁÂ¸®½ºÆ®°¡ ÀÖÀ¸¸é
	{
		//LectList_url = leclist_url;			// °­ÁÂ ¸®½ºÆ® ÆäÀÌÁö°æ·Î...ÁöÁ¤ ( ³ªÁß¿¡ ÁöÁ¤ ¿¹Á¤ )		
	} 
	else
	{

		if( targets == "0" ) 
		{
			jhj_openWindow('lecturelist', LectList_url,'','',br_width,br_height,0,0,0,0,0)
			return;
		} 

	}

	param = "?GL_clstype=" +  GL_clstype + "&GL_g_code=" + GL_g_code + "&GL_m_code=" + GL_m_code
	location.href = LectList_url + param			// °­ÁÂ ¸®½ºÆ®·Î ÀÌµ¿!
}


function jhj_GosampleUrl( lecurl, br_width, br_height)
{
	if( lecurl == '' )
	{
		alert("ÇöÀç »ùÇÃ°­ÀÇ°¡ Á¦°øµÇÁö ¾Ê½À´Ï´Ù!");
		return;
	}
	jhj_openWindow('sample_browser', lecurl, '', '', br_width, br_height, 0, 0, 0, 0, 0);

}

function jhj_GosampleUrl_ver01( lec_cod, br_width, br_height)
{
	lecurl = "/educh/asp/lecture/vod_sample.asp?lec_code=" + lec_cod;
	jhj_openWindow('sample_browser', lecurl, 100, 100, 0, 0, 0, 0, 0, 0, 0);

}

// °­ÁÂ ÄÁÅÙÃ÷ º¸±â

function jhj_viewSetLecture(lec_idx, br_width, br_height, clstype, g_code, m_code)
{
	var loc_url;
	loc_url = "setlectV.asp?lec_idx=" + lec_idx + "&clstype=" + clstype + "&g_code=" + g_code + "&m_code=" + m_code;
	jhj_openWindow('lecture_browser', loc_url, '', '', br_width, br_height, 0, 0, 0, 0, 0);

}

function jhj_openWindow(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{

  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
