static public String fixUrl(String inUrl)
    {
	int docLoc  = inUrl.lastIndexOf('.');
	int protLoc = inUrl.indexOf("://");
	int slashLoc = -1;
	if (protLoc > 0)
	    slashLoc = inUrl.indexOf('/', protLoc+3);
	else
	    slashLoc = inUrl.indexOf('/');
	if (slashLoc < 0 ||
	    (slashLoc > 0 && docLoc < slashLoc)) // none
	    inUrl = inUrl + '/';
	inUrl = removeExtraSlash(inUrl);
	return inUrl;
    }