<!--
function setCurrentDate() {
var currentDate = new Date();
// skip if this has been called on a page with no form
if (typeof(document.dateForm) != "undefined")	
{
document.dateForm.inyear.selectedIndex = 0;
document.dateForm.inmonth.selectedIndex = currentDate.getMonth();
setDays();
document.dateForm.inday.selectedIndex = currentDate.getDate();}
}

function setDays() {
var y = document.dateForm.inyear.options[document.dateForm.inyear.selectedIndex].value;
var m = document.dateForm.inmonth.selectedIndex;
var d;
if ( (m == 3) || (m == 5) || (m == 8) || (m == 10) ) {
days = 30;}
else if (m == 1) {
if ( (Math.floor(y/4) == (y/4)) && ((Math.floor(y/100) != (y/100)) || (Math.floor(y/400) == (y/400))) )
days = 29
else
days = 28}
else {
days = 31;}
if (days > document.dateForm.inday.length) {
for (i = document.dateForm.inday.length; i < days; i++) {
document.dateForm.inday.length = days;
document.dateForm.inday.options[i].text = i + 1;
document.dateForm.inday.options[i].value = i + 1;}}
if (days < document.dateForm.inday.length) {
document.dateForm.inday.length = days;
if (document.dateForm.inday.selectedIndex == -1) 
document.dateForm.inday.selectedIndex = days - 1;}}

function AddToBookmarks(){

var url = "http://www.edinburgh-hotels-network.com/"
var who = "Edinburgh Hotels : Discounted Accommodation at Hotels in Edinburgh, Scotland"

if(navigator.appName == "Microsoft Internet Explorer" ){
window.external.AddFavorite(url, who)
}
else {alert = "To Bookmark this site press Ctrl + D"}

}

function openWindow (){
window.open ('tellafriend.asp','mywindow','width=300,height=200')
}
// -->