function openWin(page, width, height){
 if (typeof(width) == 'undefined') w = 0; else w = 20;
 if (typeof(height) == 'undefined') h = 0; else h = 70;
 width = width || 800 + w;
 height = height || 600 + h;
 nWnd = window.open(page, 'page', 'width=' + width + ', height=' + height  + ', status=no, toolbar=no, scrollbars=yes, resizable=yes, top=30, left=5');
 nWnd.focus();
}

function addBookmark(url, title)
{
if (!url) url = location.href;
if (!title) title = document.title;

//Gecko
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
//IE4+
else if (typeof window.external == "object") window.external.AddFavorite(url, title);
//Opera7+
else if (window.opera && document.createElement)
{
var a = document.createElement('A');
if (!a) return false; //IF Opera 6
a.setAttribute('rel','sidebar');
a.setAttribute('href',url);
a.setAttribute('title',title);
a.click();
}
else return false;
return true;
}

function colorTable()
{
if (document.getElementById("contacts"))
{
var tables = document.getElementsByTagName("table");
for ( var t = 0; t < tables.length; t++ ) {
if (tables[t].className == "contacts"){
var rows = tables[t].getElementsByTagName("tr");
for ( var i = 1; i < rows.length; i += 2 )
if ( !/(^|s)odd(s|$)/.test( rows[i].className ) )
rows[i].className += "odd";
}
}
}
}
