$(function () {
	$(document).ready(function(){
		/* radio & checkbox */
		radio_ck();
		$("[class*='rd_ck']").change(function(){
			radio_ck();
		});
	});
});
	
	
	
/* radio & checkbox */
function radio_ck(){
	$("[class*='rd_ck']").each(function(){
		if($(this).find("input").is(":checked")){
			$(this).addClass("checked");
		}else{
			$(this).removeClass("checked");
		}
	});
}

$(function () {
	//$(".tab1 > li:first").addClass("on");
	$(".tab1 > li").click(function(){
		$(this).addClass("on");	
	$(".tab1 > li").not($(this)).removeClass("on");	
	return false;		
	});

});



$(function () {

	//고등교육재정지원사업 검색조건 팝업
	$(".btn_search_layer > li > a").click(function(){
		$(this).addClass('on');
		$(this).next().addClass('active');
		$(".btn_search_layer > li > a").not($(this)).next().removeClass('active');
		$(".btn_search_layer > li > a").not($(this)).removeClass('on');
    });

	$(".layer_wrap > .close").click(function  () {
		$(this).parent().removeClass('active');
		$(".btn_search_layer > li > a").removeClass('on');

	})



	//대학조건 검색조건 팝업
	$(".search_button").click(function(){
		$(this).addClass('on');
		$(this).parent().parent().next().addClass('active');
		//return false;	
    });
    $(".layer_wrap > .close").click(function  () {
		$(this).parent().removeClass('active');
		$(".btn_search_layer > li > a").removeClass('on');

	})



	// 용어사전 효과
    $(".dictionary > ul > li:first").addClass('active');
    $(".dictionary > ul > li").click(function(){
        $(this).addClass('active');
        $(".dictionary > ul > li").not($(this)).removeClass('active');
    });


    // 분개문제풀이 : 탭
	$(".tab_content").hide();
	    $(".tab_content:first").show();

	    $("ul.tabs li").click(function () {
	        $("ul.tabs li").removeClass("active");
	        $(this).addClass("active");
	        $(".tab_content").hide()
	        var activeTab = $(this).attr("rel");
	        $("#" + activeTab).fadeIn()
	    });

	// 분개문제풀이 : 아코디언	 
	$(".accordion > li > .accord_head").on("click",function  () {
		var display=$(this).next().css("display");
		$(".accordion > li > .accord_head.on").removeClass("on").next().stop().slideUp();

		if (display=="none") {
			$(".accordion > li > .accord_head.on").removeClass("on").next().stop().slideUp();
			$(this).addClass("on").next().stop().slideDown();
		}
		return false;
	});

	// 분개문제풀이 : 아코디언	 
});


//레이어팝업 뒷배경 어둡게처리
function wrapWindowByMask(){
	//화면의 높이와 너비를 구한다.
	var maskHeight = $(document).height();  
	var maskWidth = $(window).width();  
	//마스크의 높이와 너비를 화면 것으로 만들어 전체 화면을 채운다.
	$('#mask').css({'width':maskWidth,'height':maskHeight});
	$('#mask').fadeTo("slow",0.7);
}

//레이어팝업 중앙에 띄우기
jQuery.fn.center = function () {
    this.css("position","absolute");
    this.css("top", Math.max(0, (($(window).height() - 500) / 2)) + "px");
    this.css("left", Math.max(0, (($(window).width() - $(this).outerWidth()) / 2)) + "px");
    return this;
}

$(function () {
	$("#popUp_close").click(function() {
		$('#layoutPopUp').hide();
		$('#mask').hide();
	});
});

/** https://github.com/blueimp/JavaScript-Templates */
if (typeof tmpl == "undefined") {
	!function(e){"use strict";var n=function(e,t){var r=/[^\w\-.:]/.test(e)?new Function(n.arg+",tmpl","var _e=tmpl.encode"+n.helper+",_s='"+e.replace(n.regexp,n.func)+"';return _s;"):n.cache[e]=n.cache[e]||n(n.load(e));return t?r(t,n):function(e){return r(e,n)}};n.cache={},n.load=function(e){return document.getElementById(e).innerHTML},n.regexp=/([\s'\\])(?!(?:[^{]|\{(?!%))*%\})|(?:\{%(=|#)([\s\S]+?)%\})|(\{%)|(%\})/g,n.func=function(e,n,t,r,c,u){return n?{"\n":"\\n","\r":"\\r","\t":"\\t"," ":" "}[n]||"\\"+n:t?"="===t?"'+_e("+r+")+'":"'+("+r+"==null?'':"+r+")+'":c?"';":u?"_s+='":void 0},n.encReg=/[<>&"'\x00]/g,n.encMap={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;"},n.encode=function(e){return(null==e?"":""+e).replace(n.encReg,function(e){return n.encMap[e]||""})},n.arg="o",n.helper=",print=function(s,e){_s+=e?(s==null?'':s):_e(s);},include=function(s,d){_s+=tmpl(s,d);}","function"==typeof define&&define.amd?define(function(){return n}):"object"==typeof module&&module.exports?module.exports=n:e.tmpl=n}(this);
}
/** 클립리포트 4.0 OOF 제너레이터 */
if (typeof OOFDocument == "undefined") {
	function OOFDocument(){this.strTitle="";this.strFieldListType="name";this.arrConnectionList=new Array();this.arrFieldList=new Array();this.arrFileList=new Array();this.arrOptionList=new Array();}OOFDocument.prototype.getTitle=function(){return this.strTitle;};OOFDocument.prototype.setTitle=function(a){this.strTitle=a;};OOFDocument.prototype.getConnectionList=function(){return this.arrConnectionList;};OOFDocument.prototype.addConnectionData=function(a,c){var b=new OOFConnectionData(a,c);this.arrConnectionList.push(b);return b;};OOFDocument.prototype.addConnectionFile=function(b,a){var c=new OOFConnectionFile(b,a);this.arrConnectionList.push(c);return c;};OOFDocument.prototype.addConnectionHTTP=function(a,c,d){var b=new OOFConnectionHTTP(a,c,d);this.arrConnectionList.push(b);return b;};OOFDocument.prototype.addConnectionJDBC=function(a,d,f,b,e){var c=new OOFConnectionJDBC(a,d,f,b,e);this.arrConnectionList.push(c);return c;};OOFDocument.prototype.addConnectionMemo=function(a,c){var b=new OOFConnectionMemo(a,c);this.arrConnectionList.push(b);return b;};OOFDocument.prototype.getFieldList=function(){return this.arrFieldList;};OOFDocument.prototype.addField=function(d,e,a){var b=null;var c=arguments.length;if(c==2){b=new OOFField(d,e);}else{if(c==3){b=new OOFField(d,e,a);}else{alert("OOFDocument addField Param Error");}}this.arrFieldList.push(b);return b;};OOFDocument.prototype.getOptionList=function(){return this.arrOptionList;};OOFDocument.prototype.addOption=function(b,c){var a=new OOFOption(b,c);this.arrOptionList.push(a);return a;};OOFDocument.prototype.getFileList=function(){return this.arrFileList;};OOFDocument.prototype.addFile=function(b,c){var a=new OOFFile(b,c);this.arrFileList.push(a);return a;};OOFDocument.prototype.getFieldListType=function(){return this.strFieldListType;};OOFDocument.prototype.setFieldListType=function(a){this.strFieldListType=a;};OOFDocument.prototype.toString=function(){var b=new Array();b.push("<?xml version='1.0' encoding='utf-8'?>");b.push("<oof version='3.0'>");b.push("<document title='");b.push(this.strTitle);b.push("' enable-thread='0'>");var c=this.arrFileList.length;if(c>0){b.push("<file-list>");for(var d=0;d<c;d++){b.push(this.arrFileList[d].toString());}b.push("</file-list>");}var e=this.arrConnectionList.length;if(e>0){b.push("<connection-list>");for(var d=0;d<e;d++){b.push(this.arrConnectionList[d].toString());}b.push("</connection-list>");}var f=this.arrFieldList.length;if(f>0){b.push('<field-list type="'+this.strFieldListType+'">');for(var d=0;d<f;d++){b.push(this.arrFieldList[d].toString());}b.push("</field-list>");}var a=this.arrOptionList.length;if(a>0){b.push("<option-list>");for(var d=0;d<a;d++){b.push(this.arrOptionList[d].toString());}b.push("</option-list>");}b.push("</document>");b.push("</oof>");return b.join("");};OOFDocument.prototype.hasFieldParameter=function(){if(this.arrFileList.length>0){return this.arrFileList[0].getFieldList().length>0;}return false;};OOFDocument.prototype.isHttpConnection=function(){if(this.arrFileList.length>0){if(this.arrFileList[0].getConnectionList().length>0){if(this.arrFileList[0].getConnectionList()[0]!=null){return this.arrFileList[0].getConnectionList()[0].getType()=="HTTP";}}}return false;};function OOFField(c,d,a){var b=arguments.length;if(b==0){this.strName="";this.strValue="";this.strTrim="true";}else{if(b==2){this.strName=StrNvl(c,"");this.strValue=StrNvl(d,"");this.strTrim="true";}else{if(b==3){this.strName=StrNvl(c,"");this.strValue=StrNvl(d,"");this.strTrim=StrNvl(a,"");}else{alert("OOFField Param Error");}}}}OOFField.prototype.getName=function(){return this.strName;};OOFField.prototype.setName=function(a){this.strName=a.toUpperCase();};OOFField.prototype.getValue=function(){return this.strValue;};OOFField.prototype.setValue=function(a){this.strValue=a;};OOFField.prototype.getTrim=function(){return this.strTrim;};OOFField.prototype.setTrim=function(a){this.strTrim=a;};OOFField.prototype.toString=function(){var a=new Array();a.push("<field name='");a.push(this.strName);a.push("' trim='");a.push(this.strTrim);a.push("'>");a.push(this.strValue);a.push("</field>");return a.join("");};function OOFFile(b,c){this.arrConnectionList=new Array();this.arrFieldList=new Array();var a=arguments.length;if(a==0){this.strType="reb";this.strPath="";this.strFieldListType="name";}else{if(a>0&&a<=2){this.strType=b;this.strPath=c;this.strFieldListType="";}else{alert("OOFFile Param Error");}}}OOFFile.prototype.getType=function(){return this.strType;};OOFFile.prototype.setType=function(a){this.strType=a;};OOFFile.prototype.getPath=function(){return this.strPath;};OOFFile.prototype.setPath=function(a){this.strPath=a;};OOFFile.prototype.getConnectionList=function(){return this.arrConnectionList;};OOFFile.prototype.getFieldList=function(){return this.arrFieldList;};OOFFile.prototype.getFieldListType=function(){return this.strFieldListType;};OOFFile.prototype.setFieldListType=function(a){this.strFieldListType=a;};OOFFile.prototype.addConnectionData=function(a,b){var c=new OOFConnectionData(a,b);this.arrConnectionList.push(c);return c;};OOFFile.prototype.addConnectionFile=function(b,a){var c=new OOFConnectionFile(b,a);this.arrConnectionList.push(c);return c;};OOFFile.prototype.addConnectionHTTP=function(a,b,d){var c=new OOFConnectionHTTP(a,b,d);this.arrConnectionList.push(c);return c;};OOFFile.prototype.addConnectionJDBC=function(a,c,e,b,d){var f=new OOFConnectionJDBC(a,c,e,b,d);this.arrConnectionList.push(f);return f;};OOFFile.prototype.addConnectionMemo=function(a,b){var c=new OOFConnectionMemo(a,b);this.arrConnectionList.push(c);return c;};OOFFile.prototype.addField=function(c,e,a){var b=null;var d=arguments.length;if(d==2){b=new OOFField(""+c,e);}else{if(d==3){b=new OOFField(c,e,a);}else{alert("OOFFile addField Param Error");}}this.arrFieldList.push(b);return b;};OOFFile.prototype.toString=function(){var a=new Array();a.push("<file type='");a.push(this.strType);a.push("' path='");a.push(this.strPath);a.push("'>");var c=this.arrConnectionList.length;if(c>0){a.push("<connection-list>");for(var b=0;b<c;b++){a.push(this.arrConnectionList[b].toString());}a.push("</connection-list>");}var d=this.arrFieldList.length;if(d>0){a.push('<field-list type="'+this.strFieldListType+'">');for(var b=0;b<d;b++){a.push(this.arrFieldList[b].toString());}a.push("</field-list>");}a.push("</file>");return a.join("");};function OOFOption(b,c){var a=arguments.length;if(a==0){this.strName="";this.strValue="";}else{if(a>0&&a<=2){this.strName=StrNvl(b,"");this.strValue=StrNvl(c,"");}else{alert("OOFOption Param Error");}}}OOFOption.prototype.getName=function(){return this.strName;};OOFOption.prototype.setName=function(a){this.strName=a;};OOFOption.prototype.getValue=function(){return this.strValue;};OOFOption.prototype.setValue=function(a){this.strValue=a;};OOFOption.prototype.toString=function(){var a=new Array();a.push("<option name='");a.push(this.strName);a.push("'>");a.push(this.strValue);a.push("</option>");return a.join("");};function StrNvl(b,c){var a="";if(typeof c!="undefined"){a=c;}if(typeof b=="undefined"||b==null||b==""||b=="undefined"){return a;}return b;}var ExcelExportMethod={PagePerSheet:"PagePerSheet",AllPageInOneSheet:"AllPageInOneSheet",AllPageInOneSheetForEachReport:"AllPageInOneSheetForEachReport",AllSectionInOneSheet:"AllSectionInOneSheet",AllSectionInOneSheetForEachReport:"AllSectionInOneSheetForEachReport"};var ExcelProcessGeneralFormat={AsText:"AsText",AsGeneral:"AsGeneral"};var ExportType={BMP:"BMP",EXCEL:"EXCEL",EXCELX:"EXCELX",HTML:"HTML",HTML5:"HTML5",HWP:"HWP",JPG:"JPG",PDF:"PDF",PPT:"PPT",PS:"PS",RTF:"RTF",SVG:"SVG",Text:"Text",TIF:"TIF",EFORM:"EFORM",WORDX:"WORDX"};var HTMLImageExportMethod={Not:"Not",AsFile:"AsFile",AsEmbedding:"AsEmbedding"};var HWPPositionRelTo={paper:"paper",paragraph:"paragraph"};var HWPTableSplitMethod={split:"split",splitByCell:"splitByCell",notSplit:"notSplit"};var RTFProcessEqualAlign={AsLeft:"AsLeft",AsCenter:"AsCenter",AsRight:"AsRight",AsJustify:"AsJustify"};var RTFTableRowHeightSort={Fix:"Fix",Minimum:"Minimum"};function OOFConnection(){this.strNamespace="";this.arrContentList=new Array();}OOFConnection.prototype.getType=function(){};OOFConnection.prototype.getNamespace=function(){return this.strNamespace;};OOFConnection.prototype.setNamespace=function(a){this.strNamespace=a;};OOFConnection.prototype.getContentCount=function(){return this.arrContentList.length;};OOFConnection.prototype.getContent=function(c){var e=null;var f=null;var d=this.arrContentList.length;if(c!=null&&c!==""){for(var a=0;a<d;a++){var b=this.arrContentList[a].getNamespace();if(b==c){e=this.arrContentList[a];break;}if(b==""||b=="*"){f=this.arrContentList[a];}}}if(e==null){e=f;}return e;};OOFConnection.prototype.addContent=function(a){this.arrContentList.push(a);};OOFConnection.prototype.toString=function(){};OOFConnection.prototype.toStringForContents=function(){var a=new Array();for(var b=0;b<this.arrContentList.length;b++){a.push(this.arrContentList[b].toString());}return a.join("");};OOFConnectionADO.prototype=new OOFConnection;function OOFConnectionADO(){OOFConnection.call(this);this.strConnectionInfo="";}OOFConnectionADO.prototype.getType=function(){return OOFConnectionType.ADO;};OOFConnectionADO.prototype.getConnectionInfo=function(){return this.strConnectionInfo;};OOFConnectionADO.prototype.setConnectionInfo=function(a){this.strConnectionInfo=a;};OOFConnectionADO.prototype.toString=function(){var a=new Array();a.push("<connection type='ado' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<config-param-list>");a.push("<config-param name='connection'>");a.push(this.strConnectionInfo);a.push("</config-param>");a.push("</config-param-list>");a.push(this.toStringForContents());a.push("</connection>");return a.join("");};OOFConnectionData.prototype=new OOFConnection;function OOFConnectionData(a,c){OOFConnection.call(this);var b=arguments.length;if(b==0){this.strDbname="";}else{if(b>0&&b<=2){this.setNamespace(StrNvl(a,""));this.strDbname=StrNvl(c,"");}else{alert("Data OOFConnection Param Error");}}}OOFConnectionData.prototype.getType=function(){return OOFConnectionType.Data;};OOFConnectionData.prototype.getDBName=function(){return this.strDbname;};OOFConnectionData.prototype.setDBName=function(a){this.strDbname=a;};OOFConnectionData.prototype.addContentParamDB=function(a){var b=new OOFContentParamDB(a);this.addContent(b);return b;};OOFConnectionData.prototype.toString=function(){var a=new Array();a.push("<connection type='data' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<config-param-list>");a.push("<config-param name='dbname'>");a.push(this.strDbname);a.push("</config-param>");a.push("</config-param-list>");a.push(this.toStringForContents());a.push("</connection>");return a.join("");};OOFConnectionFile.prototype=new OOFConnection;function OOFConnectionFile(b,a){OOFConnection.call(this);var c=arguments.length;if(c==0){this.strFilepath="";}else{if(c>0&&c<=2){this.setNamespace(StrNvl(b,""));this.strFilepath=StrNvl(a,"");}else{alert("File OOFConnection Param Error");}}}OOFConnectionFile.prototype.getType=function(){return OOFConnectionType.File;};OOFConnectionFile.prototype.getPath=function(){return this.strFilepath;};OOFConnectionFile.prototype.setPath=function(a){this.strFilepath=a;};OOFConnectionFile.prototype.addContentParamCSV=function(b,d,a,f,e,c){var g=new OOFContentParamCSV(b,d,a,f,e,c);this.addContent(g);return g;};OOFConnectionFile.prototype.addContentParamXML=function(a,b,d,c){var e=arguments.length;if(e==4){var f=new OOFContentParamXML(a,b,d,c);this.addContent(f);return f;}else{if(e==3){var f=new OOFContentParamXML(a,b,d);this.addContent(f);return f;}else{alert("File OOFConnection addContentParamXML Param Error");}}};OOFConnectionFile.prototype.addContentParamJSON=function(a,b,c){var d=new OOFContentParamJSON(a,b,c);this.addContent(d);return d;};OOFConnectionFile.prototype.toString=function(){var a=new Array();a.push("<connection type='file' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<config-param-list>");a.push("<config-param name='path'>");a.push(this.strFilepath);a.push("</config-param>");a.push("</config-param-list>");a.push(this.toStringForContents());a.push("</connection>");return a.join("");};OOFConnectionHTTP.prototype=new OOFConnection;function OOFConnectionHTTP(a,c,d){OOFConnection.call(this);this.strHttpsProtocol="TLS";this.strClientDatacrypto="false";this.strServerDatacrypto="false";this.arrHttpParamList=new Array();var b=arguments.length;if(b==0){this.strPath="";this.strMethod="";}else{if(b>0&&b<=3){this.setNamespace(StrNvl(a,""));this.strPath=StrNvl(c,"");this.strMethod=StrNvl(d,"");}else{alert("HTTP OOFConnection Param Error");}}}OOFConnectionHTTP.prototype.getType=function(){return OOFConnectionType.HTTP;};OOFConnectionHTTP.prototype.getPath=function(){return this.strPath;};OOFConnectionHTTP.prototype.setPath=function(a){this.strPath=a;};OOFConnectionHTTP.prototype.getMethod=function(){return this.strMethod;};OOFConnectionHTTP.prototype.setMethod=function(a){this.strMethod=a;};OOFConnectionHTTP.prototype.getHttpsProtocol=function(){return this.strHttpsProtocol;};OOFConnectionHTTP.prototype.setHttpsProtocol=function(a){if(a=="SSL"||a=="TLS"){this.strHttpsProtocol=a;}};OOFConnectionHTTP.prototype.getClientDataCrypto=function(){return this.strClientDatacrypto;};OOFConnectionHTTP.prototype.setClientDataCrypto=function(a){if(a=="false"||a=="true"){this.strClientDatacrypto=a;}};OOFConnectionHTTP.prototype.getServerDataCrypto=function(){return this.strServerDatacrypto;};OOFConnectionHTTP.prototype.setServerDataCrypto=function(a){if(a=="false"||a=="true"){this.strServerDatacrypto=a;}};OOFConnectionHTTP.prototype.getHttpParamList=function(){return this.arrHttpParamList;};OOFConnectionHTTP.prototype.addHTTPParameter=function(a,c){var b=new OOFHTTPParam(a,c);this.arrHttpParamList.push(b);return b;};OOFConnectionHTTP.prototype.addContentParamCSV=function(b,d,a,f,e,c){var g=new OOFContentParamCSV(b,d,a,f,e,c);this.addContent(g);return g;};OOFConnectionHTTP.prototype.addContentParamXML=function(a,b,c){var d=new OOFContentParamXML(a,b,c,"");this.addContent(d);return d;};OOFConnectionHTTP.prototype.addContentParamJSON=function(a,b,c){var d=new OOFContentParamJSON(a,b,c);this.addContent(d);return d;};OOFConnectionHTTP.prototype.toString=function(){var b=new Array();b.push("<connection type='http' ");b.push("namespace='");b.push(this.strNamespace);b.push("'>");b.push("<config-param-list>");b.push("<config-param name='path'>");b.push(this.strPath);b.push("</config-param>");b.push("<config-param name='method'>");b.push(this.strMethod);b.push("</config-param>");b.push("<config-param name='clientdatacrypto'>");b.push(this.strClientDatacrypto);b.push("</config-param>");b.push("<config-param name='serverdatacrypto'>");b.push(this.strServerDatacrypto);b.push("</config-param>");b.push("<config-param name='httpsProtocol'>");b.push(this.strHttpsProtocol);b.push("</config-param>");b.push("</config-param-list>");var a=this.arrHttpParamList.length;if(a!=0){b.push("<http-param-list>");for(var c=0;c<a;c++){b.push(this.arrHttpParamList[c].toString());}b.push("</http-param-list>");}b.push(this.toStringForContents());b.push("</connection>");return b.join("");};OOFConnectionJDBC.prototype=new OOFConnection;function OOFConnectionJDBC(a,d,f,b,e){OOFConnection.call(this);var c=arguments.length;if(c==0){this.strClassname="oracle.jdbc.driver.OracleDriver";this.strUrl="";this.strUser="";this.strPassword="";this.strEncoding="";this.strDecoding="";}else{if(c>0&&c<=5){this.setNamespace(StrNvl(a,""));this.strClassname=StrNvl(d,"");this.strUrl=StrNvl(f,"");this.strUser=StrNvl(b,"");this.strPassword=StrNvl(e,"");this.strEncoding="";this.strDecoding="";}else{alert("JDBC OOFConnection Param Error");}}}OOFConnectionJDBC.prototype.getType=function(){return OOFConnectionType.JDBC;};OOFConnectionJDBC.prototype.getClassname=function(){return this.strClassname;};OOFConnectionJDBC.prototype.setClassname=function(a){this.strClassname=a;};OOFConnectionJDBC.prototype.getUrl=function(){return this.strUrl;};OOFConnectionJDBC.prototype.setUrl=function(a){this.strUrl=a;};OOFConnectionJDBC.prototype.getUser=function(){return this.strUser;};OOFConnectionJDBC.prototype.setUser=function(a){this.strUser=a;};OOFConnectionJDBC.prototype.getPassword=function(){return this.strPassword;};OOFConnectionJDBC.prototype.setPassword=function(a){this.strPassword=a;};OOFConnectionJDBC.prototype.getEncoding=function(){return this.strEncoding;};OOFConnectionJDBC.prototype.setEncoding=function(a){this.strEncoding=a;};OOFConnectionJDBC.prototype.getDecoding=function(){return this.strDecoding;};OOFConnectionJDBC.prototype.setDecoding=function(a){this.strDecoding=a;};OOFConnectionJDBC.prototype.addContentParamDB=function(a){var b=new OOFContentParamDB(a);this.addContent(b);return b;};OOFConnectionJDBC.prototype.toString=function(){var a=new Array();a.push("<connection type='jdbc' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<config-param-list>");a.push("<config-param name='classname'>");a.push(this.strClassname);a.push("</config-param>");a.push("<config-param name='url'>");a.push(this.strUrl);a.push("</config-param>");a.push("<config-param name='user'>");a.push(this.strUser);a.push("</config-param>");a.push("<config-param name='password'>");a.push(this.strPassword);a.push("</config-param>");a.push("<config-param name='encoding'>");a.push(this.strEncoding);a.push("</config-param>");a.push("<config-param name='decoding'>");a.push(this.strDecoding);a.push("</config-param>");a.push("</config-param-list>");a.push(this.toStringForContents());a.push("</connection>");return a.join("");};OOFConnectionMemo.prototype=new OOFConnection;function OOFConnectionMemo(a,c){OOFConnection.call(this);var b=arguments.length;if(b==0){this.strData="";}else{if(b>0&&b<=2){this.setNamespace(StrNvl(a,""));this.strData=StrNvl(c,"");}else{alert("Memo OOFConnection Param Error");}}}OOFConnectionMemo.prototype.getType=function(){return OOFConnectionType.Memo;};OOFConnectionMemo.prototype.getData=function(){return this.strData;};OOFConnectionMemo.prototype.setData=function(a){this.strData=a;};OOFConnectionMemo.prototype.addContentParamCSV=function(b,d,a,f,e,c){var g=new OOFContentParamCSV(b,d,a,f,e,c);this.addContent(g);return g;};OOFConnectionMemo.prototype.addContentParamXML=function(a,b,c){var d=new OOFContentParamXML(a,b,c,"");this.addContent(d);return d;};OOFConnectionMemo.prototype.aaddContentParamJSON=function(a,b,c){var d=new OOFContentParamJSON(a,b,c);this.addContent(d);return d;};OOFConnectionMemo.prototype.toString=function(){var a=new Array();a.push("<connection type='memo' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<config-param-list>");a.push("<config-param name='data'>");a.push(this.strData);a.push("</config-param>");a.push("</config-param-list>");a.push(this.toStringForContents());a.push("</connection>");return a.join("");};OOFConnectionSAP.prototype=new OOFConnection;function OOFConnectionSAP(){OOFConnection.call(this);this.strVersion="";this.strDestination="";this.strEncoding="";this.strJcoASHOST="";this.strJcoSYSNR="";this.strJcoCLIENT="";this.strJcoUSER="";this.strJcoPASSWD="";this.strJcoGROUP="";this.strJcoLANG="";this.strJcoPoolName="";this.strJcoPoolCount="";this.strJcoGWHOST="";}OOFConnectionSAP.prototype.getType=function(){return OOFConnectionType.SAP;};OOFConnectionSAP.prototype.getVersion=function(){return this.strVersion;};OOFConnectionSAP.prototype.setVersion=function(a){this.strVersion=a;};OOFConnectionSAP.prototype.getDestination=function(){return this.strDestination;};OOFConnectionSAP.prototype.setDestination=function(a){this.strDestination=a;};OOFConnectionSAP.prototype.getJcoASHOST=function(){return this.strJcoASHOST;};OOFConnectionSAP.prototype.setJcoASHOST=function(a){this.strJcoASHOST=a;};OOFConnectionSAP.prototype.getEncoding=function(){return this.strEncoding;};OOFConnectionSAP.prototype.setEncoding=function(a){this.strEncoding=a;};OOFConnectionSAP.prototype.getJcoSYSNR=function(){return this.strJcoSYSNR;};OOFConnectionSAP.prototype.setJcoSYSNR=function(a){this.strJcoSYSNR=a;};OOFConnectionSAP.prototype.getJcoCLIENT=function(){return this.strJcoCLIENT;};OOFConnectionSAP.prototype.setJcoCLIENT=function(a){this.strJcoCLIENT=a;};OOFConnectionSAP.prototype.getJcoUSER=function(){return this.strJcoUSER;};OOFConnectionSAP.prototype.setJcoUSER=function(a){this.strJcoUSER=a;};OOFConnectionSAP.prototype.getJcoPASSWD=function(){return this.strJcoPASSWD;};OOFConnectionSAP.prototype.setJcoPASSWD=function(a){this.strJcoPASSWD=a;};OOFConnectionSAP.prototype.getJcoGROUP=function(){return this.strJcoGROUP;};OOFConnectionSAP.prototype.setJcoGROUP=function(a){this.strJcoGROUP=a;};OOFConnectionSAP.prototype.getJcoLANG=function(){return this.strJcoLANG;};OOFConnectionSAP.prototype.setJcoLANG=function(a){this.strJcoLANG=a;};OOFConnectionSAP.prototype.getJcoPoolName=function(){return this.strJcoPoolName;};OOFConnectionSAP.prototype.setJcoPoolName=function(a){this.strJcoPoolName=a;};OOFConnectionSAP.prototype.getJcoPoolCount=function(){return this.strJcoPoolCount;};OOFConnectionSAP.prototype.setJcoPoolCount=function(a){this.strJcoPoolCount=a;};OOFConnectionSAP.prototype.getJcoGWHOST=function(){return this.strJcoGWHOST;};OOFConnectionSAP.prototype.setJcoGWHOST=function(a){this.strJcoGWHOST=a;};OOFConnectionSAP.prototype.addContentParamDB=function(a){var b=new OOFContentParamDB(a);this.addContent(b);return b;};OOFConnectionSAP.prototype.toString=function(){var a=new Array();a.push("<connection type='sap' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<config-param-list>");a.push("<config-param name='version'>");a.push(this.strVersion);a.push("</config-param>");a.push("<config-param name='destination'>");a.push(this.strDestination);a.push("</config-param>");a.push("<config-param name='encoding'>");a.push(this.strEncoding);a.push("</config-param>");a.push("<config-param name='jcoASHOST'>");a.push(this.strJcoASHOST);a.push("</config-param>");a.push("<config-param name='jcoSYSNR'>");a.push(this.strJcoSYSNR);a.push("</config-param>");a.push("<config-param name='jcoCLIENT'>");a.push(this.strJcoCLIENT);a.push("</config-param>");a.push("<config-param name='jcoUSER'>");a.push(this.strJcoUSER);a.push("</config-param>");a.push("<config-param name='jcoPASSWD'>");a.push(this.strJcoPASSWD);a.push("</config-param>");a.push("<config-param name='jcoGROUP'>");a.push(this.strJcoGROUP);a.push("</config-param>");a.push("<config-param name='jcoLANG'>");a.push(this.strJcoLANG);a.push("</config-param>");a.push("<config-param name='jcoPoolName'>");a.push(this.strJcoPoolName);a.push("</config-param>");a.push("<config-param name='jcoPoolCount'>");a.push(this.strJcoPoolCount);a.push("</config-param>");a.push("<config-param name='jcoGWHOST'>");a.push(this.strJcoGWHOST);a.push("</config-param>");a.push("</config-param-list>");a.push(this.toStringForContents());a.push("</connection>");return a.join("");};var OOFConnectionType={ADO:"ADO",File:"File",HTTP:"HTTP",Memo:"Memo",JDBC:"JDBC",Data:"Data",SAP:"SAP"};function OOFContentParam(){this.strNamespace="";this.strEncoding="";}OOFContentParam.prototype.getType=function(){};OOFContentParam.prototype.getNamespace=function(){return this.strNamespace;};OOFContentParam.prototype.setNamespace=function(a){this.strNamespace=a;};OOFContentParam.prototype.getEncoding=function(){return this.strEncoding;};OOFContentParam.prototype.setEncoding=function(a){this.strEncoding=a;};OOFContentParam.prototype.toString=function(){};OOFContentParamCSV.prototype=new OOFContentParam;function OOFContentParamCSV(b,d,a,g,f,c){OOFContentParam.call(this);var e=arguments.length;if(e==0){this.strRowDelim="";this.strColDelim="";this.strDatasetDelim="";this.strDatasetIndex="";}else{if(e>0&&e<=6){this.setNamespace(StrNvl(b,""));this.setEncoding(StrNvl(d,""));this.strRowDelim=StrNvl(g,"");this.strColDelim=StrNvl(a,"");this.strDatasetDelim=StrNvl(f,"");this.strDatasetIndex=StrNvl(c,"");}else{alert("CSV OOFContentParam Error");}}}OOFContentParamCSV.prototype.getType=function(){return OOFContentParamType.CSV;};OOFContentParamCSV.prototype.modifyDelim=function(a){var b=new Array();if(a=="\\n"||a=="\\r\\n"||a=="\\r"||a.endsWith("\\n\\r")){b.push("(\n|(\r\n)|(\n\r)|(\r))");}else{if(a=="\\t"){b.push("\t");}else{var d="[a-z]|[A-Z]|[0-9]";var e=new RegExp(d,"g");for(var c=0;c<a.length;c++){if(a[c].match(e)!=null){b.push(a[c]);}else{b.push("\\");b.push(a[c]);}}}}return b.join("");};OOFContentParamCSV.prototype.getRowDelim=function(){return this.modifyDelim(this.strRowDelim);};OOFContentParamCSV.prototype.setRowDelim=function(a){this.strRowDelim=a;};OOFContentParamCSV.prototype.getColDelim=function(){return this.modifyDelim(this.strColDelim);};OOFContentParamCSV.prototype.setColDelim=function(a){this.strColDelim=a;};OOFContentParamCSV.prototype.getDatasetDelim=function(){return this.modifyDelim(this.strDatasetDelim);};OOFContentParamCSV.prototype.setDatasetDelim=function(a){this.strDatasetDelim=a;};OOFContentParamCSV.prototype.getDataSetIndex=function(){return this.strDatasetIndex;};OOFContentParamCSV.prototype.setDataSetIndex=function(a){this.strDatasetIndex=a;};OOFContentParamCSV.prototype.toString=function(){var a=new Array();a.push("<content content-type='csv' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<content-param name='encoding'>");a.push(this.strEncoding);a.push("</content-param>");a.push("<content-param name='col-delim'>");a.push(this.strColDelim);a.push("</content-param>");a.push("<content-param name='row-delim'>");a.push(this.strRowDelim);a.push("</content-param>");a.push("<content-param name='dataset-delim'>");a.push(this.strDatasetDelim);a.push("</content-param>");a.push("<content-param name='dataset-index'>");a.push(this.strDatasetIndex);a.push("</content-param>");a.push("</content>");return a.join("");};OOFContentParamDB.prototype=new OOFContentParam;function OOFContentParamDB(a){OOFContentParam.call(this);var b=arguments.length;if(b==1){this.setNamespace(a);}else{if(b!=0){alert("DB OOFContentParam Error");}}}OOFContentParamDB.prototype.getType=function(){return OOFContentParamType.DB;};OOFContentParamDB.prototype.toString=function(){var a=new Array();a.push("<content content-type='db' ");a.push("namespace='");a.push(this.strNamespace);a.push("' />");return a.join("");};OOFContentParamJSON.prototype=new OOFContentParam;function OOFContentParamJSON(a,b,c){OOFContentParam.call(this);var d=arguments.length;if(d==0){this.strRoot="";}else{if(d>0&&d<=3){this.setNamespace(StrNvl(a,""));this.setEncoding(StrNvl(b,""));this.strRoot=StrNvl(c,"");}else{alert("JSON OOFContentParam Error");}}}OOFContentParamJSON.prototype.getType=function(){return OOFContentParamType.JSON;};OOFContentParamJSON.prototype.getRoot=function(){return this.strRoot;};OOFContentParamJSON.prototype.setRoot=function(a){this.strRoot=a;};OOFContentParamJSON.prototype.toString=function(){var a=new Array();a.push("<content content-type='json' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<content-param name='encoding'>");a.push(this.strEncoding);a.push("</content-param>");a.push("<content-param name='root'>");a.push(this.strRoot);a.push("</content-param>");a.push("</content>");return a.join("");};var OOFContentParamType={CSV:"CSV",XML:"XML",DB:"DB",JSON:"JSON"};OOFContentParamXML.prototype=new OOFContentParam;function OOFContentParamXML(a,b,d,c){OOFContentParam.call(this);var e=arguments.length;if(e==0){this.strRoot="";this.strXslPath="";}else{if(e>0&&e<=4){this.setNamespace(StrNvl(a,""));this.setEncoding(StrNvl(b,""));this.strRoot=StrNvl(d,"");this.strXslPath=StrNvl(c,"");}else{alert("XML OOFContentParam Error");}}}OOFContentParamXML.prototype.getType=function(){return OOFContentParamType.XML;};OOFContentParamXML.prototype.getRoot=function(){return this.strRoot;};OOFContentParamXML.prototype.setRoot=function(a){this.strRoot=a;};OOFContentParamXML.prototype.getXslPath=function(){return this.strXslPath;};OOFContentParamXML.prototype.setXslPath=function(a){this.strXslPath=a;};OOFContentParamXML.prototype.toString=function(){var a=new Array();a.push("<content content-type='xml' ");a.push("namespace='");a.push(this.strNamespace);a.push("'>");a.push("<content-param name='encoding'>");a.push(this.strEncoding);a.push("</content-param>");a.push("<content-param name='root'>");a.push(this.strRoot);a.push("</content-param>");if(this.strXslPath!=""){a.push("<content-param name='xslpath'>");a.push(this.strXslPath);a.push("</content-param>");}a.push("</content>");return a.join("");};function OOFHTTPParam(a,c){var b=arguments.length;if(b==0){this.strName="";this.strValue="";}else{if(b>0&&b<=2){this.strName=StrNvl(a,"");this.strValue=StrNvl(c,"");}else{alert("OOFHTTPParam Error");}}}OOFHTTPParam.prototype.getName=function(){return this.strName;};OOFHTTPParam.prototype.setName=function(a){this.strName=a;};OOFHTTPParam.prototype.getValue=function(){return this.strValue;};OOFHTTPParam.prototype.setValue=function(a){this.strValue=a;};OOFHTTPParam.prototype.toString=function(){var a=new Array();a.push("<http-param name='");a.push(this.strName);a.push("'>");a.push(this.strValue);a.push("</http-param>");return a.join("");};
}