if( typeof( __webutil_js_included__ ) == "undefined" ) {
	__webutil_js_included = true;

	function WebUtil() {
		this.errBgColor = "#ffc1c1";
		this.sucBgColor = "#c2e0ff";
		this.xmlHttpReq = false;
		// branch for native XMLHttpRequest object
		if(window.XMLHttpRequest) {
			try {
				this.xmlHttpReq = new XMLHttpRequest();
			} catch(e) {
				this.xmlHttpReq = false;
			}
		// branch for IE/Windows ActiveX version
		} else if(window.ActiveXObject) {
			try {
            	this.xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
			} catch(e) {
				try {
					this.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
				} catch(e) {
					this.xmlHttpReq = false;
				}
			}
		}

        this.execXml = function( url ) {
			this.xmlHttpReq.open( "GET", url, false );
        	this.xmlHttpReq.send( "" );
        	return this.xmlHttpReq.responseXML;
        }
	}
	WebUtil = new WebUtil();

	function urlQuery(url) {
		this.url = (url) ? url : location.href;
		this.getHostname = function() {
			return location.hostname;
		}
		this.getPort = function() {
			return location.port;
		}
		this.getProtocol = function() {
			return location.protocol;
		}
		this.getValue = function(key) {
			if(!key) 
				return "";
			var urlArray = this.url.split("?");
        	var urlParam = new Array();
        	if( urlArray[1] == null )
				return "";

        	var paramArray = urlArray[1].split('&');
        	for( var index = 0; index < paramArray.length; index++ ) {
				var valuePair = paramArray[index].split('=');
				if(valuePair[0] == key) {
					return valuePair[1];
				}
				// urlParam[valuePair[0]] = valuePair[1];
			}
        }
	}
}

