﻿function bookmarksite(title, url) {
    if (document.all)
        window.external.AddFavorite(url, title);
    else if (window.sidebar)
        window.sidebar.addPanel(title, url, "");
}

function popupcalendar(whichbox) {
    var arrivedate;
    var departdate;
    var topposition;
    var leftposition;
    var urlpath;
    
    arrivedate = document.aspnetForm.ctl00$CPH_Content$ArriveDate.value;
    departdate = document.aspnetForm.ctl00$CPH_Content$DepartDate.value;
    
    topposition = (screen.height) ? (screen.height-220)/2 : 0;
    leftposition = (screen.width) ? (screen.width-250)/2 : 0;
    
    urlpath = 'scripts/asp/popupcalendar.asp?fill=' + whichbox + '&ArriveDate=' + arrivedate + '&DepartDate=' + departdate
    
    {
        window.open(urlpath,'popupcalendar','top=' + topposition + ',left=' + leftposition + ',scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no,width=220,height=250');
    }
}

function newwindow(URL, TheWidth, TheHeight) {
    var topposition;
    var leftposition;
        
    topposition = 10;
    leftposition = 10;
        
    {
        window.open(URL,'newwindow','top=' + topposition + ',left=' + leftposition + ',scrollbars=yes,resizable=yes,menubar=no,status=yes,toolbar=no,width=' + TheWidth +',height=' + TheHeight);
    }
}

function doemail(part1) {

    var part2;
    var part3;
    
    part3 = 'com';
    part2 = 'vacationsbyanchor';
    
    document.write('<a href="mailto:' + part1 + '@' + part2 + '.' + part3 + '">' + part1 + '@' + part2 + '.' + part3 + '</a>');
}