URL.js
function _parseNetworkLocation(networkLocation, obj) {
	var pos = networkLocation.indexOf(':');
	if (pos === -1) {
		obj.host = networkLocation;
	} else {
		obj.host = networkLocation.substring(0, pos);
		if (pos < (networkLocation.length - 1)) {
			obj.port = networkLocation.substring(pos + 1);
		}
	}
}
function _parseNetworkLocation(networkLocation, obj) {
	var pos = networkLocation.indexOf(':');
	if (pos === -1) {
		obj.host = networkLocation;
	} else {
		obj.host = networkLocation.substring(0, pos);
		if (pos < (networkLocation.length - 1)) {
			obj.port = networkLocation.substring(pos + 1);
		}
	}
}
function _parseNetworkLocation ( networkLocation , obj ) { var pos = networkLocation . indexOf ( ':' ) ; if ( pos === - 1 ) { obj . host = networkLocation ; } else { obj . host = networkLocation . substring ( 0 , pos ) ; if ( pos < ( networkLocation . length - 1 ) ) { obj . port = networkLocation . substring ( pos + 1 ) ; } } }
Parse the network location which will contain the host and possibly
the port.

@param networkLocation
the network location portion of URL being parsed
Parse the network location which will contain the host and possibly the port .