
<!--

	/**
	 * <p>DPSAJAX</p>
	 *
	 * @author zhaoaiqing
	 * @version 1.0 2008.4.1

	 */
	 
	var oDPSAJAX = new DPSAJAX();
	
	function DPSAJAX() {
		
	}
	
	DPSAJAX.prototype.RequestPostUrlText = function( urlToCall, text ,asyncFunctionPointer ) {
		var strUrl = top.location.href; 
		//\u30e1\u30fc\u30f3\u753b\u9762\u304cHTTPS\u3067\u901a\u4fe1\u3059\u308b\u5834\u5408\u3001\u975e\u540c\u671f\u5316\u51e6\u7406\u3082HTTPS\u3078\u5909\u63db\u3059\u308b
		if(urlToCall.indexOf('auth') > 0 || strUrl.startsWith('https://')) {
			urlToCall = httpsPath + urlToCall;
		} else {			
			urlToCall = httpPath + urlToCall;			
		}
		/*
		if(contextPath != null && contextPath != "") {
			urlToCall = contextPath + urlToCall;
		}
		*/
		var oDPSAjax = this;
		var bAsync = ( typeof(asyncFunctionPointer) == 'function' ) ;
		
		if ( bAsync ) {
			new Ajax.Request(urlToCall,{
			 		asynchronous : true,
			 		method : "POST",
			 		parameters : text,
			      	onComplete : asyncFunctionPointer,
			      	onFailure : ajaxFailed,
			      	onException : ajaxException
			      	}
		  	); 
			
		}
	}
	
	DPSAJAX.prototype.UpdaterPostUrlText = function( syncHtmlId,urlToCall, text  ) {
		
		var oDPSAjax = this;
		
		var strUrl = top.location.href; 
		if(urlToCall.indexOf('auth') > 0 || strUrl.startsWith('https://')) {
			urlToCall = httpsPath + urlToCall;
		} else {			
			urlToCall = httpPath + urlToCall;			
		}
		/*
		if(contextPath != null && contextPath != "") {
			urlToCall = contextPath + urlToCall;
		} 
		*/
		new Ajax.Updater($(syncHtmlId),urlToCall,{
			 		method : "POST",
			 		parameters : text,
			 		evalScripts:true
		     	}
		  ); 
	}
	
	var ajaxFailed = function(xmlhttp, json) {
		
	};

	var ajaxException = function(xmlhttp, e) {
		
	};
	var ajaxComplete = function(xmlhttp){
	//alert(xmlhttp);
	};
	String.prototype.trim = function() {
		return this.replace(/(^[\s\u3000]*)|([\s\u3000]*$)/g, "");
	}

-->
