function house(housenumber, price, startdate, enddate, people, season, agency, showit)
{
    var url = "http://www.novasol.pl/nov/616.nsf/"+showit+"/house?opendocument&H="+housenumber+"&P="+price+"&PE="+people+"&SD="+startdate+"&ED="+enddate+"&S="+season+"&A="+agency;
    if ( showit == 'x' ) {
        subwin(url, housenumber, '760', '440');
    } else {
        location.href = url;
    }
}

function subwin(s, t, w, h) {
    window.name = "opener";
    addWindow = window.open(s,t,"width="+w+",height="+h+",resizable=1,status=1,menubar=0,scrollbars=1,fullscreen=0");
    addWindow.focus()
}

function subcal(s) {
    window.name = "opener";
    addWindow = window.open(s,"calendar","width=203,height=140,resizable=1,status=0,menubar=0,scrollbars=0,fullscreen=0");
    addWindow.focus()
}

function makeLink(f,dateField,country)
{
    findValue = document.forms[f].elements[dateField].value.split('-')
    myMonth = findValue[1]
    myYear = findValue[2]
    var calname = f
    if (f=='camp') {
       subcal('http://www.novasol.pl/nov/616.nsf/x/campcalendar?opendocument&dateField='+dateField+'&m='+myMonth+'&y='+myYear+'&formname='+f+'&country='+country)
    } else if (calname.search(/alpine/) > -1) {
       subcal('http://www.novasol.pl/nov/616.nsf/x/calendaralpine?opendocument&dateField='+dateField+'&m='+myMonth+'&y='+myYear+'&formname='+f+'&country='+country)
    } else {
       subcal('http://www.novasol.pl/nov/616.nsf/x/calendar?opendocument&dateField='+dateField+'&m='+myMonth+'&y='+myYear+'&formname='+f+'&country='+country)
    }
}
