 function closeWindow(parentRefresh)
 {   
      if (parentRefresh==1) { opener.location.reload(); }
      //opener.location.reload();
      self.close();
 }

 function ShowInfoWindow(page,title,w,h)
   {   
      var posx = (screen.width-w)/2;
      var posy = (screen.height-h)/2;
      scrollb = 'yes';       
      //new_win = window.open(page,'status=yes,width='+w+',height='+h+',scrollbars='+scrollb);
      //new_win = window.open(page,'','status=yes,width=650,height=400,scrollbars=yes');
      new_win = window.open(page, '', 'status=no,width='+w+',height='+h+',scrollbars='+scrollb+',left='+posx+',top='+posy);
  }

 function ShowPhotoWindow(page,title,w,h)
   {   
      var posx = (screen.width-w)/2;
      var posy = (screen.height-h)/2;
      scrollb = 'no';       
      //new_win = window.open(page,'status=yes,width='+w+',height='+h+',scrollbars='+scrollb);
      //new_win = window.open(page,'','status=yes,width=650,height=400,scrollbars=yes');
      new_win = window.open(page, '', 'status=no,width='+w+',height='+h+',scrollbars='+scrollb+',left='+posx+',top='+posy);
  }

  
  function yesno(question, page)
  {
  	if (confirm(question)) 
  	  {
  	  	window.location.replace(page);
  	  }
  }
  
  function checkpass(pass1, pass2)
  {
     if (pass1!=pass2)
     {
	alert('Passwords are diffrent! No changes were done!');
     }
  } 
  
  function sub()
  {
  	alert('Tu jestem!');
  }
  

