function helloWorld() {
  alert('Hello World!') ;
}

function jemail(user, domain, suffix, subj, text){
var sSubj;
var sEmail;
var sText;
    
	sEmail = user + '@' + domain + '.' + suffix;
    
	// Use the subject paramerter if supplied 
	if (subj == '')  {
		sSubj = '';
		}
	else  {
		sSubj = '?Subject=' + subj;
		}
		
	// Use the text paramerter in the <a>text</a> tag if supplied otherwise just use the email address
	if (text == '')  {
		sText = sEmail;
		}
	else  {
		sText = text;
		}
	
	document.write('<a href="' + 'mailto:' + sEmail + sSubj + '">' + sText + '</a>');
}

function synchTab(frameName) {

  var elList, i;

  // Exit if no frame name was given.

  frameName='Home.aspx';
  
  if (frameName == null)
    return;
  // Check all links.

  elList = document.getElementsByTagName("A");
  for (i = 0; i < elList.length; i++)

    // Check if the link's target matches the frame being loaded.

    if (elList[i].target == frameName) {

      // If the link's URL matches the page being loaded, activate it.
      // Otherwise, make sure the tab is deactivated.

      if (elList[i].href == window.frames[frameName].location.href) {
        elList[i].className += " activeTab";
        elList[i].blur();
      }
      else
        removeName(elList[i], "activeTab");
    }
}

function removeName(el, name) {

  var i, curList, newList;

  // Remove the given class name from the element's className property.

  newList = new Array();
  curList = el.className.split(" ");
  for (i = 0; i < curList.length; i++)
    if (curList[i] != name)
      newList.push(curList[i]);
  el.className = newList.join(" ");
}

