function charChange (word)
{
	var word2 = "";

	for (i = 0; i < word.length; i++)
	{
		c = word.charAt (i);

		if (c == ' ')
			word2 += "%20";
		else
		if (c == 39)
			word2 += "%27";
		else
			word2 += c;
	}

	return word2;
}

function picwin (title, prm)
{
	var params = "resizable=yes,width=100,height=200,scrollbars=yes";

	title2 = charChange (title);

	var dest = "picwindow.php?title=" + title2;

	if (prm != "") dest += "&" + prm;

	gWin = window.open (dest, "picwin", params);
	gWin.focus ();	// Bring window to the front
}
