function recalcdates(str) {
    var str_out = '';

    str_out = str.substring(0, str.indexOf("datefrom=") + 9);
    str_out = str_out + getnextday();
    str_out = str_out + str.substring(str.indexOf("datefrom=") + 19, str.indexOf("dateto=") + 7);
    str_out = str_out + getnextmonth();
    str_out = str_out + str.substring(str.indexOf("dateto=") + 17, str.length);

    return (str_out);
}
function getnextday() {
    var d = new Date();
    d.setDate(d.getDate() + 1);
    return (DateToString(d));
}
function getnextmonth() {
    var d = new Date();
    d.setMonth(d.getMonth() + 2);
    return (DateToString(d));
}
function DateToString(d) {
    var s = '';

    if (d.getDate() > 9) {
        s += d.getDate();
    }
    else {
        s += '0' + d.getDate();
    }

    s += '.';

    if ((d.getMonth() + 1) > 9) {
        s += (d.getMonth() + 1);
    }
    else {
        s += '0' + (d.getMonth() + 1);
    }

    if (navigator.appName == "Netscape") {
        s += '.' + d.getFullYear();
    }
    else {
        s += '.' + d.getYear();
    }

    return (s);
}



var imagesarr = new Array(
    '/img/On-line.jpg',
    '/img/tui_vko_vacansy.jpg',
    '/img/prague.jpg',
    '/img/kipr.jpg',
    '/img/israel.jpg',
    '/img/andorra1.jpg',
    '/img/francha.jpg'
);

var linksarr = new Array(
    '/flights_sched.aspx?rule_name=flights_sched&__st=flights_sched&script_name=%2fflights_sched.aspx&tickets=1',
    '/catalog/59256.aspx',
    '/toursearch.aspx?search=1&availmode=0&depcity=1&transtype=1&country=82&resort=&datefrom=07.11.2010&dateto=12.12.2010&tourtype=&spo=&hid_nights=1&hid_hotelcategories=1&hid_foodtypes=1&hid_hotels=1&hid_parms=1&adults=&childs=&maxprice=&currency=3&sort=0&hid_hotelservices=0#list',
    '/descr/138/81840.aspx?ocity=4013',
    '/toursearch.aspx?search=1&availmode=0&depcity=1&transtype=1&country=54&resort=&datefrom=17.10.2010&dateto=16.11.2010&tourtype=&spo=&hid_nights=1&hid_hotelcategories=1&hid_foodtypes=1&hid_hotels=1&hid_parms=1&adults=&childs=&childs_ageFrom=-1&childs_ageTo=-1&maxprice=&currency=3&sort=0&hid_hotelservices=0#list',
    'http://www.vkotravel.com/descr/157/157803.aspx',
    'http://www.vkotravel.com/catalog/29493.aspx'
);


