/*******************************
 $Date: 2007/03/22 23:35:13 $
 $Revision: 1.2 $
 *******************************/
/** HTTP connection process rapping script **/

var HTTP = new Object();

/**
 * do HTTP get process
 * 
 * @param url
 * @param async   true:asynchronous process(require handler object)/false:synchronous process
 * @param handler  EventHandler Object on asynchronous process
 *
 */
HTTP.get = function(url, async, handler){
	var http = new JKL.ParseXML.Text( url );
	if(async){
		http.async( handler );
	}
	return http.parse();
}


/**
 * do HTTP post process
 * 
 * @param url
 * @param postData   post data
 * @param async   true:asynchronous process(require handler object)/false:synchronous process
 * @param handler  EventHandler Object on asynchronous process
 *
 */
HTTP.post = function(url, postData, async, handler){
	var http = new JKL.ParseXML.Text( url , postData );
	if(async){
		http.async( handler );
	}
	return http.parse();
}
