/*  */
function flow_invalid_detail(path, sval, mode, ERI, rpstr, ldiv, mtype, mutp) {
	if (confirm(return_language_str(path, sval, '', 'CONFIRM_INVALID', '')+'?')) {
		loading_create('Y');
		var mdir = '',perm = '',
			url = path+'core/cw5e_ext_flow.php?sid='+sval+'&parent='+EncodeURLutf8(path)+'&mode='+mode+'&mutp='+mutp+'&act=invalid&ERI='+ERI;
		switch (mutp) {
			case 'R': mdir = 'manage'; break;
			case 'B':
			default: mdir = 'modules'; break;
		}
		var nmary = ['exec','qwe','sor','itms'];
		rpstr = rpstr.split(',');
		for (var i = 0; i < nmary.length; i++) {
			if ((rpstr[i]) && $('#'+rpstr[i]+mtype).length > 0) {
				if (perm != '') perm += '&';
				perm += nmary[i]+'='+EncodeURLutf8($('#'+rpstr[i]+mtype).val());
			}
		}
		$.get(url, '', function(msg) {
			// console.log(msg);
			var ret_msg = JSON.parse(msg);
			if (ret_msg[0].result == 'false') {
				alert(ret_msg[0].message);
				loading_close('');
				return false;
			} else {
				//alert(return_language_str(path, sval, '', 'INVALID_COMPLETE', '')+"!");
				post_redirect(ldiv, perm, path+mdir+'/'+mode+'/detail.php?sid='+sval+'&parent='+EncodeURLutf8(path)+'&mode='+mode+'&mutp='+mutp+'&act=view&ERI='+ERI);
			}
		});
	}
}