﻿
var _MovieDLIndex = {curIndex:0, preIndex:0};
var PdsControls = {
	MoviePlayer : function(v_movie_text, v_movie_url, v_movie_index){
		document.getElementById('movie_'+ _MovieDLIndex.preIndex).style.display = "none";
		_MovieDLIndex.curIndex = v_movie_index;
		document.getElementById('movie_'+ _MovieDLIndex.curIndex).style.display = "";
		_MovieDLIndex.preIndex = _MovieDLIndex.curIndex;
		document.getElementById('movie_text').innerHTML = v_movie_text;
		document["MOVIEDOWNLOAD"].flashFunction(v_movie_url);
	},
	DownLoad_File : function(enc_file_path){
		var v_create_form_name	= 'ParameterForm';
		var v_create_element	= ''
		v_create_element	+= '<form name="' + v_create_form_name + '" method="post"></form>';
		var v_isCreated	= CommonControls.AddCreateElements(v_L_BOX_COMMON_ELEMENT_CONTROL, v_create_element);
		if (v_isCreated){
			var objForm = document.forms[v_create_form_name];
			if (objForm){
				with(objForm){
					action = enc_file_path;
					target	= "__iframe_proc";
					submit();
				}
			}
		}
    },
    NMTKClientDownload : function(v_is_login, v_client_url){
		if(v_is_login){
			var v_create_form_name	= 'ParameterForm';
			var v_create_element	= ''
			v_create_element	+= '<form name="' + v_create_form_name + '" method="post"></form>';
			var v_isCreated	= CommonControls.AddCreateElements(v_L_BOX_COMMON_ELEMENT_CONTROL, v_create_element);
			if (v_isCreated){
				var objForm = document.forms[v_create_form_name];
				if (objForm){
					with(objForm){
						action = v_client_url;
						target	= "__iframe_proc";
						submit();
					}
				}
			}
		}else{
			alert(ERROR_MESSAGE_LOGIN_0006);
		}
    }
}