<!--//
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=400');");
}

function chat(windowname)
{
if (! window.focus)return true;
var href;
if (typeof('http://office.24travels.com/chat/') == 'string')
   href='http://office.24travels.com/chat/';
else
   href='http://office.24travels.com/chat/'.href;
window.open(href, windowname, 'width=500,height=400,scrollbars=yes');
return false;
}

//
// start windows 


// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 100;
PositionY = 100;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(300,300);');
writeln('width=300-(document.body.clientWidth-document.images[0].width);');
writeln('height=300-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');
close();		
}}

// end windows

// start email

<!--
	function check_newsletter_form()
	{
	
	if( document.newsform.email.value == '' ){
	alert("Podaj poprawny adres e-mail!");
	return false;
	}
	
	}
// -->

//  end email

// start zaslepka
function blind(obj) { obj.src='/common/skin/z.gif'; }
// end zaslepka

// start symbol oferty

function fkod(id) {
  dot=id.value.indexOf('/')
    lastdot=id.value.lastIndexOf('/')
    error=0
    if( (dot==-1) || (dot!=lastdot)) {
      error=1;
      msg="Symbol oferty musi miec taki format: 1234/567, wpisano " + id.value;
    }
  for (i = 0; i < id.value.length; i++) {
    if(!isDigit(id.value.substring(i,i+1))) {
      error=1
	msg="Symbol oferty musi miec taki format: 1234/567, wpisano " + id.value;
    }
  }

  if (error) {
    alert(msg);
  } else {
    location.replace('/kod=' + id.value);
  }
  return error;
}
function isDigit(n){
  if( (n < "0") || ("9" < n)) {
    if (n="/") {
      return true
    }
    return false
  } else {
    return true
  }
}

// end symbol oferty



// Layer link
function layerlnk(path) { var name = Math.random(); window.open(path,'_self'); }
// Layer link



// start popup cookie
var expHours = 48; 
var page = "/gfx/fla/banner.html";
var windowprops = "width=407,height=217,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,left=0,top=170";

function GetCookie (name) {  
  var arg = name + "=";  
  var alen = arg.length;  
  var clen = document.cookie.length;  
  var i = 0;  
  while (i < clen) {    
    var j = i + alen;    
    if (document.cookie.substring(i, j) == arg)      
      return getCookieVal (j);    
    i = document.cookie.indexOf(" ", i) + 1;    
    if (i == 0) break;   
  }  
  return null;
}

function SetCookie (name, value) {  
  var argv = SetCookie.arguments;  
  var argc = SetCookie.arguments.length;  
  var expires = (argc > 2) ? argv[2] : null;  
  var path = (argc > 3) ? argv[3] : null;  
  var domain = (argc > 4) ? argv[4] : null;  
  var secure = (argc > 5) ? argv[5] : false;  
  document.cookie = name + "=" + escape (value) + 
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
    ((path == null) ? "" : ("; path=" + path)) +  
    ((domain == null) ? "" : ("; domain=" + domain)) +    
    ((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) {  
  var exp = new Date();  
  exp.setTime (exp.getTime() - 1);  
  var cval = GetCookie (name);  
  document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expHours*60*1000));
function amt(){
  var count = GetCookie('count')
    if(count == null) {
      SetCookie('count','1')
	return 1
    }
    else {
      var newcount = parseInt(count) + 1;
      DeleteCookie('count')
	SetCookie('count',newcount,exp)
	return count
    }
}

function getCookieVal(offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function popUp1(page,windowprops) {
day = new Date();
//id = day.getTime();
id ='1';
eval("page"+id+" = window.open(page, 'popup', windowprops);");
}

function checkCount() {
  var count = GetCookie('count');
  if (count == null) {
    count=1;
    SetCookie('count', count, exp);

    	//window.open(page, "", windowprops);
	popUp1(page,windowprops);
  }
  else {
    count++;
    SetCookie('count', count, exp);
  }
}

// end popup cookie
//-->