function mail(URL)
  {
  URL1 = "";
  pos = URL.indexOf("@");
  for (var i = 0; i < pos; i++)
    {
    if (URL.charCodeAt(i) > 96 && URL.charCodeAt(i) < 123)
      { URL1 += String.fromCharCode(((URL.charCodeAt(i) - 97 + 1) % 26) + 97); }
    else
      { URL1 += URL.charAt(i); }
    }
  URL1 += URL.substr(pos);
	document.location = "mailto:" + URL1;
  }
  
function showPopupImage(URL, description, width, height)
  {
	win = window.open("", "popup", "width=" + (width + 20) + ", height=" + (height + 60) + ", toolbar=no, location=no, status=no, resizable=no, scrollbars=no");
	win.document.write("<HTML><HEAD><TITLE>" + description + "</TITLE>");
	win.document.write("<script type=\"text/javascript\">");
	win.document.write("function pageLoadScript()");
	win.document.write("{");
	win.document.write("window.resizeTo(" + (width + 20) + ", " + (height + 60) + ");");
	win.document.write("}");
	win.document.write("<\/script>");
	win.document.write("</HEAD>");

	win.document.write("<BODY onload=\"pageLoadScript()\" STYLE=\"margin: 0px;\">");
	win.document.write("<IMG SRC=" + URL + ">");
	win.document.write("</BODY></HTML>");
  win.document.close();
  win.focus();
	}

function showPopup(URL, description)
  {
	win = window.open("", "popupURL", "width=450, height=450, toolbar=no, location=no, status=no, resizable=yes, scrollbars=yes");
	win.document.write("<HTML><HEAD><TITLE>" + description + "</TITLE>");
	win.document.write("<script type=\"text/javascript\">");
	win.document.write("function pageLoadScript()");
	win.document.write("{");
//	win.document.write("alert(\"" + URL + "\")");
	win.document.write("document.location = \"" + URL + "\"");
	win.document.write("}");
	win.document.write("<\/script>");
	win.document.write("</HEAD>");

	win.document.write("<BODY onload=\"pageLoadScript()\" STYLE=\"margin: 0px;\">");
	win.document.write("</BODY></HTML>");
  win.document.close();
  win.focus();
	}

function showTab(tabIndex, lastTab)
  {
  document.getElementById('divTabArea' + tabIndex).style.display='block';
  document.getElementById('divTab' + tabIndex).className='tabSelected';
	for (i=1; i<=lastTab; i++)
  	{
		if (i != tabIndex )
	  	{ 
      document.getElementById('divTabArea' + i).style.display='none';
		  document.getElementById('divTab' + i).className='tabNotSelected';
      }
    }
	}
  

