function mailto(domain,user)
{
	document.location.href = "mailto:" + user + "@" + domain;
}

function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = ""
} 

function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

function checkAll(formId, cName, check ) {
    for (i=0,n=formId.elements.length;i<n;i++)
        if (formId.elements[i].className.indexOf(cName) !=-1)
            formId.elements[i].checked = check;
}

<!--
function outboundLink() {
	return confirm("Are you sure?");
}
//-->

function openNfsMenu()
{
  var nfsMenu = document.getElementById("nfsMenu");
  var children = nfsMenu.childNodes;
  for (var i = 0; i < children.length; i++)
  {
    if (children[i].className == "item")
    {
      if (children[i].style.display == "none")
        children[i].style.display = "block";
      else
        children[i].style.display = "none";
    }
  }
}