function rep(str)
{
	re = /[^0123456789A-z]/gi;
	nm = str.replace(re, '');
	
	return nm;
}

function bigphoto($url, $width, $height)
{
	a = new String($url);
	if (a.slice(0, 1)=='i')
	{
		$url = '/' + $url;
	}
	nm = rep($url);
	popupWin = window.open($url, nm, 'width='+$width+',height='+$height+',top=10,left=80,location=no,toolbar=no,status=no,scrollbars=auto');
	popupWin.focus();
}
