//Plik pomocniczy JSCRIPT
//wszystkie funkcje pomocnicze do obsługi podstron
// serwisu www.elserw.com.pl

//Dodanie funkcji prototypowej TRIM
String.prototype.trim = function()
{
    // Use a regular expression to replace leading and trailing 
    // spaces with the empty string
    return this.replace(/(^\s*)|(\s*$)/g, "");
}

//popups.php
function jsredir(url)
{
	url="http://www.elserw.com.pl/cgi-bin/redir.php?id="+url;
	document.location=url;
}

//Skok do zadanego anchor'a an tej samej stronie
function jmpanch(anch)
{
	anch="#"+anch;
	document.location=anch;
}