﻿function printaltURLs() {
	var fullURL = document.URL;
	// remove domain
	fullURL = fullURL.replace(/^http:\/\/[^\/]+/,"");
	// remove call to cyrsite.pl
	fullURL = fullURL.replace(/^\/cgi-bin\/cyrsite.+cyrfile=/,"");
	// remove the qualifiers
	fullURL = fullURL.replace(/\?.+$/,"");
	// add index.html if necessary
	fullURL = fullURL.replace(/\/$/,"/index.html");
	// format the line to print
	myURL = fullURL + "\">";
	var anSt = "<a href=\"/cgi-bin/cyrsite.pl?cyrtable=";
	var anMid = "&cyrfile=";
	var anEnd = "</a> |";
	var fullLine = "<p><font size=\"1\" face=\"Arial Cyr,Arial,Helvetica\"><strong>| " +
		anSt + "win" + anMid + myURL + "WIN" + anEnd + " " +
		anSt + "koi8" + anMid + myURL + "KOI8" + anEnd + " " +
		anSt + "iso5" + anMid + myURL + "ISO-8859-5" + anEnd + " " +
		anSt + "alt" + anMid + myURL + "DOS" + anEnd + " " +
		anSt + "mac" + anMid + myURL + "MAC" + anEnd +
		"</strong></font></p>";
	document.write(fullLine);
}