var win = 0;
function bookmark(url,title)
{
if (document.all)
{
window.external.AddFavorite(url,title);}
}
function contact(page)
{
mail_str = "mailto:contact@";
mail_str = mail_str + "the-hotel-guide.com";
mail_str = mail_str + "&subject=Enquiry";
if (page){mail_str = mail_str + "%20from%20" + page;}
mail_str = mail_str + "&body=";
var width = parseInt( screen.width * 0.9 );
var height = parseInt( screen.height * 0.6 );
var left = parseInt( ( screen.width - width ) /2 );
if (win){win.close();}
win=window.open(mail_str,"Mail","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
function link(theForm)
{
root = "http://www.the-hotel-guide.com/cgi-bin/search.pl?id=TN-x&city=" + theForm.city.value;
var width = parseInt( screen.width * 0.9 );
var height = 450;
var left = parseInt( ( screen.width - width ) /2 );
window.open(root,"Details","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
return false;
}
function specials()
{
var width = parseInt( screen.width * 0.9 );
var height = 400; // parseInt( screen.height * 0.7 );
var left = parseInt( ( screen.width - width ) /2 );
var top = parseInt( ( screen.height - height ) /2 );
root = "http://www.the-hotel-guide.com/cgi-bin/specials.pl";
if (win){win.close();}
win=window.open(root,"Specials","status=1,toolbar=1,menubar=0,location=0,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}

function info(ref)
{
var width = parseInt( screen.width * 0.7 );
var height = parseInt( screen.height * 0.9 );
var left = parseInt( ( screen.width - width ) /2 );
var top = parseInt( ( screen.height - height ) /2 );
root = "http://www.the-hotel-guide.com/cgi-bin/info.pl?id=" + ref;
if (win){win.close();}
win=window.open(root,"Info","status=1,toolbar=1,menubar=0,location=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}

function rates(ref)
{
var width = parseInt( screen.width * 0.7 );
var height = 400; // parseInt( screen.height * 0.7 );
var left = parseInt( ( screen.width - width ) /2 );
var top = parseInt( ( screen.height - height ) /2 );
root = "http://www.the-hotel-guide.com/cgi-bin/rates.pl?id=" + ref;
if (win){win.close();}
win=window.open(root,"Rates","status=1,toolbar=1,menubar=0,location=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
