function checkMail(str)
{
   Wzor=/^[_0-9a-zA-Z.-]+\@[0-9a-zA-Z]+\.[0-9a-zA-Z.]+$/;
   OK=(Wzor.test(str)==true && str.length!=0);
   if (OK)
   {
      return true;
   }
   else
   {
      alert("Błędny adres e-mail");
      return false;
   }
}
//sprawdza formularz
function check_form()
{
  if( document.getElementById('kon-name').value != "" )
   	{
     if( document.getElementById('kon-phone').value != "" )
    	{
         if( document.getElementById('kon-content').value != "" )
      		{
               return true;
        	 }else
      			{
        		  alert("Uzupełnij treści!");
         		  return false;
         		 }
   		 } else {
     				alert("Uzupełnij pole email lub numer telefonu!");
     				return false;
   				}

 		}else {
     				alert("Uzupełnij imię i nazwisko");
     				return false;
   				}


}


///
function check_form2()
{
  if( document.getElementById('haslo').value != "" )
   	{
     if( document.getElementById('haslo2').value != "" )
    	{
          return true;
        	 }else
      			{
        		  alert("powtórz hasło!");
         		  return false;
         		 }
   		 
 		}else {
     				alert("Uzupełnij hasło!");
     				return false;
   				}


}


/*
function changeStatusBarText(){
z=['Stać Cię na własne lokum','Inwestuj i zarabiaj już dziś','Mieszkanie na kredyt - taniej niż za gotówkę'];
	z.push(z.shift());
	window.status = z[0];
	document.getElementById("e").innerHTML = z[0];
	$('#e').text(z[0]);

	
}
*/

/* Document ready
 ==================================== */

$(document).ready(function() {

$('.pics').cycle({
	fx: 'scrollLeft',
	speed: 1500,
    timeout:500,
    random:  1
});
$('#napis').hide();
$('#e').show();

$('#e').cycle({
	fx: 'fade',
	speed: 2500,
	timeout:5000
});
	
/*	$('a[rel="lightbox"]').lightbox();*/

});
	