//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//BasicScripts.js	1.0															//
//Written by Curtis Kipple ckipple@ksu.edu											//
//																		//
//If you came accross this,														//
//you have earned your right to use this script.										//
//All I ask is that you please email me and let me know where you're using it.					//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Creates a link on the page where called.
//displayed is the email addresss
function emailAddressLink(account, domain)
{  document.write('<a href="mailto:' + account + '@' + domain + '">' + account + '@' + domain + '</a>');
   return true;
}

//Creates a link on the page where called.
//displayed is the nameToShow parameter
function emailAddress(account, domain, nameToShow)
{  document.write('<a href="mailto:' + account + '@' + domain + '">' + nameToShow + '</a>');
   return true;
}


function track(link)
{  var trackLink = "http://www.ksu.edu/cru/bin/hitLogger.cgi?dataFile=cruWebLog.dat&Page=" + link;
   parent.iframe.location.href=trackLink;
   return true;
}

function trackNotify(link)
{  var trackLink = "http://www.ksu.edu/cru/bin/hitLogger.cgi?dataFile=cruWebLog.dat&Page=" + link;
   parent.iframe.location.href=trackLink;
   alert("You are entering a page that is outside of\nCampus Crusade for Christ at Kansas State University's website.\nWe cannot be responsible for the content outside our site.");
   return true;
}