
function writeEmailTag( emailUserName)
{
var html = '<A HREF="mailto:';
html += emailUserName;
html += '@mooresvillechristian.org">';
html += emailUserName;
html += '@mooresvillechristian.org</A>';
return html;
}

function writeEmailTagWithDomain( emailUserName, domain)
{
var html = '<A HREF="mailto:';
html += emailUserName;
html += '@';
html += domain;
html += '">';
html += emailUserName;
html += '@';
html += domain;
html += '</A>';
return html;

}


function openNewsletter(selectedValue)
{
  if( "'undefined'" ==    "'" + selectedValue + "'" )
  {
     alert("Sorry, this doesn't work with your browser.  Please try IE 6+ or go to your class' web page.");
  }
  else
  {
      window.location= selectedValue;
  }
}


//--Returns the current system time as a string in hh:mm am/pm format.
function nowStr() {
var now=new Date()
var hours=now.getHours()
var minutes=now.getMinutes()
timeStr=""+((hours > 12) ? hours - 12 : hours)
timeStr+=((minutes < 10) ? ":0" : ":") + minutes
timeStr+=(hours >= 12) ? " PM" : " AM"
return timeStr
} 
//--Returns the current date in mm/dd/yy format as a string.

function todayStr() 
{
var today=new Date()
return today.getMonth()+1+"/"+today.getDate()+"/"+(today.getFullYear() )
}

