
var    _intValue   = '0123456789.';
var    _upperValue = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
var    _lowerValue = 'abcdefghijklmnopqrstuvwxyz';
var    _etcValue   = ' ~`!@#$%%^&*()-_=+\|[{]};:\'\",<.>/?';

function ShowCalendarDialog( objSource)
{
	var strYear;
	var strMonth;
	var strDay;

	var strSelectedDate = window.showModalDialog( "/inc/calendar/calendar-body.html", window, "dialogWidth:290px; dialogHeight:245px; status:false; help:no;");

	if( strSelectedDate==null ) return;

	// ³âµµ
	strYear = strSelectedDate.substring( 0, 4);
	// ¿ù
	strMonth = strSelectedDate.substring( 4, 6);
	// ÀÏ
	strDay = strSelectedDate.substring( 6, 8);

	objSource.value = strYear + strMonth + strDay;
}

function IsUpper(value) {    // ¿µ¹® ´ë¹®ÀÚÀÎ°¡?
    var   i;
    for(i=0;i<_upperValue.length;i++)
        if(value == _upperValue.charAt(i)) {
            return true;
        }
    return false;
}
function IsLower(value) {    // ¿µ¹® ¼Ò¹®ÀÚÀÎ°¡?
    var   i;
    for(i=0;i<_lowerValue.length;i++)
        if(value == _lowerValue.charAt(i)) {
            return true;
        }
    return false;
}
function IsInt(value) {    // ¼ýÀÚÀÎ°¡?
    var   j;
    for(j=0;j<_intValue.length;j++) 
        if(value == _intValue.charAt(j)) {
            return true;
        }
    return false;
}
function IsEtc(value) {    // ±âÅ¸µîµîÀÎ°¡? (ÇÑ±ÛÀÌ ¾Æ´Ñ)
    var   j;
    for(j=0;j<_etcValue.length;j++)
        if(value == _etcValue.charAt(j)) {
            return true;
        }
    return false;
}


//-------------------------------------------------------------------
// ¾ÆÀÌµð ¼ýÀÚ/¿µ¹® Ã¼Å© ÇÔ¼ö
//-------------------------------------------------------------------

function charTest(name) {
	for(var i=0; i<name.length; i++) {
		vAsc = name.charCodeAt(i);

		if ((vAsc > 96) && (vAsc < 124))	//¿ä°Ô ¼Ò¹®ÀÚ
			continue;
		if ((vAsc > 64) && (vAsc < 91)) 	//¿ä°Ç ´ë¹®ÀÚ
			continue;
		if ((vAsc > 47) && (vAsc < 58))		//¿ä°Ç ¼ýÀÚ...
			continue;

		return false;		//¿µ¹®,¼ýÀÚ ÀÌ¿ÜÀÇ ¹®ÀÚ°¡ ÀÖ´Â °æ¿ì
	}
	return true;    		//¿µ¹®,¼ýÀÚ·Î¸¸ ÀÌ·ç¾îÁø °æ¿ì
}


//-------------------------------------------------------------------
// E-mail ÁÖ¼Ò Ã¼Å© ÇÔ¼ö
//-------------------------------------------------------------------
function CheckEmail(email) {
	var atSign;
	var atCnt;
	var i;
	
	atCnt = 0;
	atSign = 0;
	
	// ¿µ¹®/¼ýÀÚ/°ñ¹ðÀÌ/Á¡ Ã¼Å© & °ñ¹ðÀÌ Ã£±â
	for (i = 0; i < email.length; i++) 
	{
        	if(!(IsUpper(email.charAt(i)) || IsLower(email.charAt(i)) || email.charAt(i) =='.'|| email.charAt(i) =='_'|| email.charAt(i) =='-'|| email.charAt(i) =='@'||IsInt(email.charAt(i))))
			return false;
        
        	if(email.charAt(i) =='@') {
        		atSign = i;
        		atCnt++;
	        }	
               
	}

	if (atCnt == 0 || atCnt > 1) return false;

	// ´ÙÀ½ ¸ÞÀÏ »ç¿ëÀÚ ÀÏ¶§
	//if ( (email.substring(atSign+1) == 'daum.net') || (email.substring(atSign+1) == 'hanmail.net') )
	//	return 999

	return true;
}

//ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å©
function CheckJuminNumber( strJunminNumber1, strJunminNumber2) 
{
    var sum;
    sum = 0;

    if ((strJunminNumber1 == '') || (strJunminNumber2 == ''))
    {
	return false;
    }

    sum += strJunminNumber1.charAt(0)*2;
    sum += strJunminNumber1.charAt(1)*3;
    sum += strJunminNumber1.charAt(2)*4;
    sum += strJunminNumber1.charAt(3)*5;
    sum += strJunminNumber1.charAt(4)*6;
    sum += strJunminNumber1.charAt(5)*7;

    sum += strJunminNumber2.charAt(0)*8;
    sum += strJunminNumber2.charAt(1)*9;
    sum += strJunminNumber2.charAt(2)*2;
    sum += strJunminNumber2.charAt(3)*3;
    sum += strJunminNumber2.charAt(4)*4;
    sum += strJunminNumber2.charAt(5)*5;

    check = (11 - sum%11)%10;

    if (strJunminNumber2.charAt(6) != check || (strJunminNumber1.length != 6 && strJunminNumber2.length != 7))
    {
        return false;
    }

    if(!(strJunminNumber2.charAt(0) == '1' || strJunminNumber2.charAt(0)  == '2' || strJunminNumber2.charAt(0) == '3' || strJunminNumber2.charAt(0) == '4'))
    {
    	return false;
    }

    return true;
}


// ¼ýÀÚ¸¸ ÀÔ·Â Á¦ÇÑ
function OnlyNumber()
{
	if(( (event.keyCode>47)&&(event.keyCode<58) ) || (event.keyCode == 45))
	{
		event.returnValue = true;
	}
	else
	{
        	event.returnValue = false;
	}
}

// ¿µ¹® ¼ýÀÚ¸¸ ÀÔ·Â Á¦ÇÑ
function OnlyAlphaNumeric()
{
	if( ((event.keyCode>47)&&(event.keyCode<58))||((event.keyCode>64)&&(event.keyCode<91))||((event.keyCode>96)&&(event.keyCode<123)) )
	{
	}
	else
	{
		event.returnValue = false;
	}
}

// ¾çÂÊ °ø¹é Á¦°Å
function Trim(str)
{
	len = str.length;
	for(j = len - 1; j >= 0; j--)
	{
		if(str.charAt(j) != " ") break;
	}

	for(i = 0; i < j; i++)
	{
		if(str.charAt(i) != " ") break;
	}

	return str.substring(i, j + 1);
}

function IsNumber(strtemp) {
	for(var i = 0; i < strtemp.length; i++) {
		var chr = strtemp.substr(i,1);
	//	alert(chr)
		if(chr < '0' || chr > '9') {            
			return(false);
		}
	}
	return(true);
}

//-------------------------------------------------------------------
// E-mail ÁÖ¼Ò Ã¼Å© ÇÔ¼ö2
//-------------------------------------------------------------------
function CheckEmail2(email)
{
	if(/^[_0-9a-zA-Z-]+(\.[_0-9a-zA-Z-]+)*@[_0-9a-zA-Z-]+(\.[_0-9a-zA-Z-]+)+$/.test(email) == false)
	{ 
		alert("¹®ÀÚ¿­ÀÌ °ø¹éÀÌ°Å³ª Àß¸øµÈ ÀüÀÚ ¿ìÆíÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼Ì½À´Ï´Ù.\n´Ù½Ã ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
		return false;
	}
	return true;
}

function checkNumber(objEv)
{
	var numPattern = /([^0-9])/;

	numPattern = objEv.value.match(numPattern);

	if(numPattern != null)
	{
		alert("¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		objEv.value = "";
		objEv.focus();
		return false;
	}
}


 function position_open(mypage,w,h) { 
   LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;
       settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; 
  win = window.open(mypage,'popynp',settings);
  if(win.focus) {
   win.focus();
  }
 } 

 function pop_open(mypage,w,h) { 
   LeftPosition=(screen.width)?(screen.width-w)/2:100;
  TopPosition=(screen.height)?(screen.height-h)/2:100;
  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no'; 
  win = window.open(mypage,'pop_open',settings);
  if(win.focus) {
   win.focus();
  }
 } 


// ====================================================================================
// À©µµ¿ì ¿ÀÇÂ (È­¸é Áß¾Ó)
// onclick="win_open('calender.asp', 'calender', 200, 160);"
//
// url        : ÁÖ¼Ò
// win_id     : À©µµ¿ì ÀÌ¸§
// win_width  : À©µµ¿ì °¡·Î Å©±â
// win_height : À©µµ¿ì ¼¼·Î Å©±â
// ====================================================================================
function win_open(url, win_id, win_width, win_height) {
	var win_opt, o_win;
	
	win_opt = "width=" + win_width + ",height=" + win_height + ",resizable=no,status=no,scrollbars=auto";
	win_opt += ",top=" + eval((screen.availHeight / 2) - (win_height / 2)) + ",left=" + eval((screen.availWidth / 2) - (win_width / 2));

	o_win = window.open(url, win_id, win_opt);
	o_win.focus();

}

// ====================================================================================
// À©µµ¿ì ¿ÀÇÂ (À§Ä¡ ÁöÁ¤)
// onclick="win_open_pos('calender.asp', 'calender', 200, 160, 512, 384);"
//
// url        : ÁÖ¼Ò
// win_id     : À©µµ¿ì ÀÌ¸§
// win_width  : À©µµ¿ì °¡·Î Å©±â
// win_height : À©µµ¿ì ¼¼·Î Å©±â
// win_x      : À©µµ¿ì x ÁÂÇ¥
// win_y      : À©µµ¿ì y ÁÂÇ¥
// ====================================================================================
function win_open_pos(url, win_id, win_width, win_height, win_x, win_y) {
	var win_opt, o_win;
	
	win_opt = "width=" + win_width + ",height=" + win_height + ",resizable=no,status=no,scrollbars=yes";
	win_opt += ",top=" + win_y + ",left=" + win_x;

	o_win = window.open(url, win_id, win_opt);
	o_win.focus();
}


// ====================================================================================
// ¿£ÅÍÅ°¸¦ ´­·¶À» °æ¿ì ÇØ´ç ÇÔ¼ö¸¦ È£Ãâ
// 
// fn_name : ÇÔ¼ö¸í ("window.close()")
// ====================================================================================
function enter_fn_exec(fn_name) {
    if (event.keyCode == 13)
        setTimeout(fn_name, 0);
}


// ====================================================================================
// ºó°ª Çã¿ëÇÏÁö ¾Ê´Â ÀÔ·ÂÆû Ã¼Å©
// 
// ctrl : ÄÁÆ®·Ñ °³Ã¼ (document.all.Email)
// msg  : °æ°íÃ¢¿¡ º¸¿©Áú ³»¿ë
// ====================================================================================
function not_null(ctrl, msg) {
	if (ctrl.value.trim() == "") {
		alert(msg);
		ctrl.focus();
		return false;
	}

	return true;
}


// ====================================================================================
// ±ÛÀÚ¼ö °è»ê
//
// str : ³»¿ë
// ====================================================================================
function chk_str_len(str) {
	var str_len = 0;

	var Nav = navigator.appName;
	var Ver = navigator.appVersion;

	var IsExplorer = false;

	var ch;

	if ((Nav == 'Microsoft Internet Explorer') && (Ver.charAt(0) >= 4))
		IsExplorer = true;

	if (IsExplorer) {
		for (var i = 0; i < str.length; i++) {
			ch = str.charAt(i);

			if ((ch == "\n") || ((ch >= "¤¿") && (ch <= "È÷")) || ((ch >="¤¡") && (ch <="¤¾")))
				str_len += 2;
			else
				str_len += 1;
		}
	}
	else
		str_len = str.length;

   return str_len;
}

function chk_len_msg(str, str_len, item) {
	if (chk_str_len(str.value) > str_len) {
		alert("[" + item + "]ÀÇ ±æÀÌ´Â " + str_len + "ÀÚ ÀÌ³»·Î ÀÔ·ÂÇÏ¼Å¾ß ÇÕ´Ï´Ù. ÇÑ±Û 1ÀÚ´Â 2ÀÚ·Î °è»êµË´Ï´Ù.");
		return false;
	}

	return true;
}


// ====================================================================================
// ¸ÞÀÏÁÖ¼Ò Çü½Ä °Ë»ç
//
// email : ¸ÞÀÏÁÖ¼Ò
// ====================================================================================
function confirm_email(email) {
	var exclude = /[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/;
	var check = /@[\w\-]+\./;
	var checkend = /\.[a-zA-Z]{2,3}$/;

	if (((email.search(exclude) != -1) || (email.search(check)) == -1) || (email.search(checkend) == -1))
		return false;

	return true;
}


// ====================================================================================
// ¸®½ºÆ®¿¡¼­ Ã¼Å©¹Ú½º ÀüÃ¼¼±ÅÃ (¹ÝÀü)
//
// oAllChkBox : ÀüÃ¼¼±ÅÃ Ã¼Å©¹Ú½º
// oChkBox    : Ã³¸®µÉ Ã¼Å©¹Ú½º
// ====================================================================================
function chk_all_chkbox(oAllChkBox, oChkBox) {
	var bln_checked;

	if (oAllChkBox.checked)
		bln_checked = true;
	else
		bln_checked = false;

	if (eval(oChkBox)) {
		if (eval(oChkBox.length)) {
			var chkbox_count = oChkBox.length;

			for (var i = 0; i < chkbox_count; i++)
				oChkBox[i].checked = bln_checked;
		}
		else
			oChkBox.checked = bln_checked;
	}
}


// ====================================================================================
// ¼±ÅÃÇÑ(Ã¼Å©ÇÑ) ´ë»óÀÌ ÇÏ³ª ÀÌ»ó ÀÖ´ÂÁö È®ÀÎ
//
// oChkBox : Ã¼Å©¹Ú½º
// ====================================================================================
function confirm_check(oChkBox) {
	var chkbox_checked;

	chkbox_checked = false;

	if (eval(oChkBox)) {
		if (eval(oChkBox.length)) {
			var chkbox_count = oChkBox.length;

			for (var i = 0; i < chkbox_count; i++) {
				if (oChkBox[i].checked)
					chkbox_checked = true;
			}
		}
		else {
			if (oChkBox.checked)
				chkbox_checked = true;
		}
	}

	return chkbox_checked;
}


// ====================================================================================
// ´ÙÀ½ ÄÁÆ®·Ñ·Î ÀÌµ¿
//
// ctrl : ÄÁÆ®·Ñ °³Ã¼ (document.all.Email)
// ====================================================================================
function go_next_ctrl(ctrl) {
	var i;
	var keyCode = event.keyCode ? event.keyCode :
                  event.which   ? event.which   : event.charCode;

	if( keyCode == 13 ) {
		for (i = 0; i < ctrl.form.elements.length; i++ ) {
			if (ctrl == ctrl.form.elements[i])
				break;
		}

		i = (i + 1) % ctrl.form.elements.length;

		ctrl.form.elements[i].focus();

		return false;
	}
	else
		return true;
}


// ====================================================================================
// ÄÞº¸¹Ú½º¿¡¼­ ÇØ´ç°ª ¼±ÅÃ Ã³¸®
//
// oSELECT   : SELECT ÄÁÆ®·Ñ °³Ã¼
// str_value : ¼±ÅÃÇÒ °ª
// ====================================================================================
function sel_opt(oSELECT, str_value) {
	for (var i = 0; i < oSELECT.length; i++) {
		if (oSELECT[i].value == str_value) {
			oSELECT[i].selected = true;
			break;
		}
	}
}


// ====================================================================================
// VBSÀÇ Trim ±¸Çö (LTrim, RTrim µ¿ÀÏ)
// ====================================================================================
String.prototype.trim = function() {
    return this.replace(/(^ *)|( *$)/g, "");
}

String.prototype.ltrim = function() {
    return this.replace(/(^ *)/g, "");
}

String.prototype.rtrim = function() {
    return this.replace(/( *$)/g, "");
}


// ÀÀ´ä
function xhp(actUrl, postPrm, sync, rtnFn, exPrm1, exPrm2, exPrm3) {
	var XMLHttpReq = false;
	var exPrms = "";

	if (exPrm1 != null) exPrms += (", \"" + exPrm1 + "\"");
	if (exPrm2 != null) exPrms += (", \"" + exPrm2 + "\"");
	if (exPrm3 != null) exPrms += (", \"" + exPrm3 + "\"");

	//IEÀÎ°æ¿ì
	if(window.ActiveXObject) {
		XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else {
		XMLHttpReq = new XMLHttpRequest();
		XMLHttpReq.overrideMimeType("text/xml");
	}

    XMLHttpReq.open("POST", actUrl, sync);
    XMLHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    XMLHttpReq.onreadystatechange = function() {
		if(XMLHttpReq.readyState == 4) {
			switch (XMLHttpReq.status) {
				case 404:
					alert("¿À·ù: " + actUrl + " ÆäÀÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.");
					break;
				case 500:
					alert("¿À·ù: " + XMLHttpReq.responseText);
					break;
				default:
					eval(rtnFn + "(XMLHttpReq.responseText" + exPrms + ");");
					break;
			}
		}
	}

	XMLHttpReq.send(postPrm);
}


// ·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿
function go_menu(code) {
	switch (code){
		case "main":
			location.href = "/";
			break;
		case "login": //·Î±×ÀÎ
			location.href = "/member/member_login.asp?gourl=" + escape(location.href); 
			break;
		case "logout": //·Î±×¾Æ¿ô
			location.href = "/member/member_logout.asp?gourl=" + escape(location.href); 
			break;
		default:
			alert("ÁØºñÁßÀÔ´Ï´Ù.");
	}
}

// ·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿
function go_login(code,url) {
	switch (code){
		case "main":
			location.href = "/";
			break;
		case "login": //·Î±×ÀÎ
			location.href = "/member/member_login.asp?gourl=" + escape(url); 
			break;
		case "logout": //·Î±×¾Æ¿ô
			location.href = "/member/member_logout.asp?gourl=" + escape(url); 
			break;
		default:
			alert("ÁØºñÁßÀÔ´Ï´Ù.");
	}
}

function playIt()
{	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32"))
	{	MPlay1.Play();
	}
	else
	{	document.MPlay1.Play();
	}
}

function pauseIt()
{	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32"))
	{	if (MPlay1.PlayState == 2)
		{	MPlay1.Pause();	}
	}
	else
	{	if (document.MPlay1.GetPlayState() == 2)
		{	document.MPlay1.Pause();
		}
	}
}

function stopIt()
{	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32"))
	{	MPlay1.Stop();
	}
	else
	{	document.MPlay1.Stop();
	}
}

function vod_view(cmno, mode) {
	win_open("/inc/vod.asp?cmno=" + cmno + "&acd=&mode=" + mode, "vod" + cmno, 638, 367);
}

function vod_view_author(cmno, acd, mode) {
	win_open("/inc/vod.asp?cmno=" + cmno + "&acd=" + acd + "&mode=" + mode, "vod" + cmno, 638, 367);
}


//2011³â 07¿ù 29ÀÏ º¹À½°­´Ü vod ½ÃÃ» ¸¸ ·Î±×ÀÎ ¾ø¾îµµ ½ÃÃ»°¡´ÉÇÏ°Ô
function vod_view_author_accessON(cmno, acd, mode) {
	win_open("/inc/vod.asp?auth=accessON&cmno=" + cmno + "&acd=" + acd + "&mode=" + mode, "vod" + cmno, 638, 367);
}


function vod_view_schedule(mno, mode) {
//	win_open("/inc/vod.asp?mno=" + mno + "&acd=&mode=" + mode, "vod_" + mno, 638, 367);
	win_open("/inc/vod.asp?cmno=" + mno + "&acd=&mode=" + mode, "vod_" + mno, 638, 367);
}

function write_vod(url, vod_width, vod_height, auto_start) {
	var str = "";

	str += "<object id=\"Player\" classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\"	codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" type=\"application/x-oleobject\" onfocus=\"this.blur();\" width=\"" + vod_width + "\" height=\"" + vod_height + "\" VIEWASTEXT>"
	str += "<param name=\"URL\" value=\"" + url + "\">"
	str += "<param name=\"rate\" value=\"true\">"
	str += "<param name=\"balance\" value=\"0\">"
	str += "<param name=\"currentPosition\" value=\"0\">"
	str += "<param name=\"defaultFrame\" value=\"\">"
	str += "<param name=\"playCount\" value=\"1\">"
	str += "<param name=\"autoStart\" value=\"" + auto_start + "\">"
	str += "<param name=\"currentMarker\" value=\"0\">"
	str += "<param name=\"invokeURLs\" value=\"false\">"
	str += "<param name=\"baseURL\" value=\"\">"
	str += "<param name=\"volume\" value=\"100\">"
	str += "<param name=\"mute\" value=\"0\">"
	str += "<param name=\"uiMode\" value=\"none\">"
	str += "<param name=\"stretchToFit\" value=\"true\">"
	str += "<param name=\"windowlessVideo\" value=\"false\">"
	str += "<param name=\"enabled\" value=\"true\">"
	str += "<param name=\"enableContextMenu\" value=\"false\">"
	str += "<param name=\"fullScreen\" value=\"false\">"
	str += "<param name=\"SAMIStyle\" value=\"\">"
	str += "<param name=\"SAMILang\" value=\"\">"
	str += "<param name=\"SAMIFilename\" value=\"\">"
	str += "<param name=\"captioningID\" value=\"\">"
	str += "</object>"

	document.write(str);
}

function find_zipcode() {
	win_open("/inc/pop_zipcode.asp", "zipcode", 445, 400);
}

function vod_problem() {
	win_open_pos("/vod_problem.asp", "vod_problem", 786, 600,100,100);
}

function vod_problem2(mypage,winname) {
	win_open_pos(mypage,winname, 786, 600,100,100);
}

//function vod_problem3() {
//	win_open_pos("/vod_problem3.asp", "vod_problem3", 786, 600,100,100);
//}


// ÇÃ·¡½¬Á» º¸¿©¶ù
var UTIL = {
    setComma : function(num,pos){
        if( pos == "" || pos == null ){ pos = 3; }
        var number = num.toString(); 
        var lenNum = number.length; 
        var newNum = ''; 
        for (var i=0; i < lenNum; i++ ) { 
            newNum += number.substring(i,i+1);         
            if(((lenNum-i-1)%pos) == 0 && (lenNum-i-1) > 0 ) newNum += ','; 
            //if(((lenNum-i)%pos) == 0 && (lenNum-i) > 0 ) newNum += ','; //½Ç½Ã°£
        }
        return newNum;
    }

  
	,insertFlash : function( filepath, uW, uH ){
        if( !filepath ){ return; }
        var h = 701;
        var w = 413;
        if( uW > 0 ){ w = uW; }
        if( uH > 0 ){ h = uH; }

        var flashObj  = "<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 + "\">\n";
            flashObj += "<param name=\"movie\" value=\"" + filepath + "\" />\n";
            flashObj += "<param name=\"quality\" value=\"high\" />";
            flashObj += "<param name=\"wmode\" value=\"transparent\" />\n"
            flashObj += "<embed src=\"" + filepath + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + w + "\" height=\"" + h + "\" wmode=\"transparent\"></embed>\n";
            flashObj += "</object>"
            document.write(flashObj);
    }
}


// ±è»ïÈ¯¸ñ»ç¼³±³VODÆË¾÷

function mvnew_window(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); 
} 
// --]
