

// writeemail will write the email address to the page
function writeemail(username, domain) {
	document.write( username + '@' + domain )
}

// writecloakedmailto will write a mailto link to the page.
// if linktext = "email" then the email address is written cloaked, otherwise linktext is written
function writecloakedmailto(username, domain, linktext) {
	document.write('<a href=\"mailto:' + username + '@' + domain + '\">');
	if (linktext == "email")	{ document.write(username + '@' + domain + '</a>') }
	else 						{ document.write(linktext + '</a>') }
}

// cloakmailto can be used in href to cloak a mailto like this:
// javascript:cloakmailto("hosting","netphoria.com?subject=hosting")
// This is safe to use with pages that can be edited by ACE  
function cloakmailto(username, domain) {
	window.location = "mailto:" + username + '@' + domain
}


function MM_openBrWindow(theURL,winName,features) { //v1.0
	var t = '?http_referer=' + document.URL
	var w = window.open(theURL + t,winName,features)
	if (w.opener == null) {
		w.opener = window;
		}
	else {
		w.focus()
	}
}


function new_window(url) {
	var link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,width=750,height=500,left=20,top=20");
}

function writeYear() {
	oneDate = new Date();
	var theYear = oneDate.getYear();
	if (theYear < 200 ) { theYear = theYear + 1900 } // Y2K fix
	document.write(theYear);
}
