function	validacja(formularz)
{
	WzorN=/^[a-zA-Z]{1,50}$/;
	WzorE=/^[0-9a-z.-]+(@|\(at\))+[0-9a-z._-]+\.[a-z]{2,3}$/i;
	WzorT=/^\+48\-[1-9]{2}[-]{1}[0-9]{7}$/;
	WzorURL=/^.{1,}\.{1}.{2,}$/;

	if (formularz.name.value.length==0)
	{
		alert("Please insert your name.");
		return false;
	}
	if (formularz.email.value.length<1)
	{
		alert("Please insert your e-mail address.");
		return false;
	}
	if (formularz.msg.value.length<1)
	{
		alert("Please insert your message.");
		return false;
	}
	
	return true;
}

function openTextWin(txt, width, height) {
	var left = (screen.width/2)-(width/2);
	window.open('/zoomtxt.php?txt='+txt,'txtwindow','top=100,left='+left+',scrolling=yes,width='+width+',height='+height+',scrollbars=auto,resizalbe=no');
}

function openTextFileWin(src, width, height) {
	var left = (screen.width/2)-(width/2);
	window.open('/zoomtxt.php?src='+src,'txtfilewindow','top=100,left='+left+',scrolling=auto,width='+width+',height='+height+',scrollbars=yes,resizalbe=no');
}

function openTextFileWin1(src, width, height) {
	var left = (screen.width/2)-(width/2);
	window.open('../zoomtxt.php?src='+src,'txtfilewindow','top=100,left='+left+',scrolling=auto,width='+width+',height='+height+',scrollbars=yes,resizalbe=no');
}

function zoom(src, width, height, id) {
	var left = (screen.width/2)-(width/2);
	window.open('_zoom.php?src='+src,'galeria'+id,'top=100,left='+left+',scrolling=no,width='+width+',height='+height+',scrollbars=no,resizalbe=no');
}

function skok(redirect) {
	document.location.href = redirect;
}

function OpenAlbum(file, width, height)
{
	var left = (screen.width/2)-(width/2);
	window.open('/albums'+file,'filewindow','top=50,left='+left+',scrolling=yes,width='+width+',height='+height+',scrollbars=yes,resizalbe=no');
}


function TopBanner() 
{

$('top_banner').set('html', '<script type="text/javascript" language="javascript" src="http://www2.glam.com/app/site/affiliate/viewChannelModule.act?mName=viewAdJs&affiliateId=356936001&adSize=728x90"></script>');

}