function bookmarksite(url, title){
if (document.all){
window.external.AddFavorite(url, title);
} else {
try{
window.sidebar.addPanel(title, url, "");
}
catch(e){
alert('You will have to manually add the site to your FF bookmarks. Just press Ctrl + D.');
}
}
}


function setHomePage(url){
try{
document.body.style.behavior='url(#default#homepage)';
document.body.setHomePage(url);
}
catch(e){
alert('We are sorry but you will have to manually change your home page.');
}
}

function printPage()
{
window.print();
}


function openWindow(w, h, t, l, d)
{
var url = window.location.href;
if(url.indexOf('#') != -1)
{
	var url1 = url.substring(0, url.indexOf('#'));
	url1 += url1.indexOf('?') == -1 ? '?' : '&';
	url = url1 + 'email=yes' + url.substring(url.indexOf('#'))
}
else
{
	url += url.indexOf('?') == -1 ? '?' : '&';
	url += 'email=yes';
}
var param = 'width=' + w + ',height=' + h;
param += ',toolbar=' + (t == 1 ? 'yes' : 'no');
param += ',location=' + (l == 1 ? 'yes' : 'no');
param += ',directories=' + (d == 1 ? 'yes' : 'no');
param += ',status=yes';
param += ',menubar=yes';
param += ',copyhistory=no';
window.open(url, 'email_page', param);
}
function toggle(el,id)
{
	var tr = document.getElementById(id);
	if (tr==null) { return; }
	var bExpand = tr.style.display == '';
	tr.style.display = (bExpand ? 'none' : '');
}
