
function showSinceFromYear(objid)
{
	var today=new Date();
	var strDisplay = "2001 - " + today.getFullYear();
	var el = document.getElementById(objid);
	if (el) el.innerHTML= strDisplay;
}

function showImage(obj, image)
{
	var el = document.getElementById(obj);
	if (el.style.display=="none") el.style.display="";
	else el.style.display = "none";
	
	if (el.style.display!="none")
	{
		el.innerHTML = "<img src=" + image + " border=0>";
	}
}

function init()
{
	var url = new String(window.location);
	var filename = url.substr(url.lastIndexOf("/") + 1);
	if(!filename) filename = "index.htm";
	if(filename.indexOf("support_") >= 0) filename = "support.htm";
	
	var el1 = document.getElementById("top_" + filename); 
	if (el1) el1.style.color="yellow";
	
	var el2 = document.getElementById("left_" + filename);
	if (el2) el2.style.color="red";
	
	var el3 = document.getElementById("leftimg_" + filename);
	if (el3) el3.src = "images/leftarrow.gif";
	
	var el4 = document.getElementById("link_" + filename);
	if (el4) el4.href = "http://www.dbmailserver.com/" + filename;
}

function showTitlePicture(srcImage, nWidth, nTop, nBottom)
{
    if (nWidth==-1) nWidth=250;
    if (nTop==-1) nTop=10;
    if (nBottom==-1) nBottom = 8;
    
    document.writeln("<table width=" + nWidth + " border=0 cellspacing=0 cellpadding=0>");
    document.writeln("<tr><td height=" + nTop + ">");
  	document.writeln("<tr><td>"); 
    document.writeln("  <table width=100%% border=0 cellpadding=0 cellspacing=1>");
    document.writeln("  <tr><td valign='bottom'><img src='" + srcImage + "' border=0>");
    document.writeln("  </table>");
    document.writeln("  <tr><td>"); 
    document.writeln("    <table width=95%% border=0 cellspacing=0 cellpadding=0>");
    document.writeln("    <tr><td width=120>");
    document.writeln("              <table width=100%% border=0 cellpadding=0 cellspacing=0>");
    document.writeln("              <tr>"); 
    document.writeln("                  <td width=27><img src='images/tit_img1.gif' width=27 height=3></td>");
    document.writeln("                  <td bgcolor=#0496D2><img src='images/tit_img3.gif'></td>");
    document.writeln("                  <td width=67><img src='images/tit_img2.gif' width=67 height=3></td>");
    document.writeln("              </table>");
    document.writeln("        <td background='images/tit_imgbg.gif'><img src='images/tit_imgbg.gif' width=1 height=3></td>");
    document.writeln("    </table>");
    document.writeln("<tr><td height=" + nBottom + ">");
    document.writeln("</table>");
}
