function emailHide(email, domain, display) {
 document.write('<a href=' + 'mail' + 'to:' + email + '@' + domain + '>' + display + '</a>');
}

function openHelp(theURL){
	var help=window.open(theURL,'help','width=275,height=125,toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=no,');
	help.focus();
}

function openExternal(theURL, width, height){
	var external=window.open(theURL,'external','width='+ width +',height='+ height +'');
	external.focus();
}

function addStyle(style){
	document.write("<style>"+style+"<\/style>")
}

function include(src){
	//resolve the URL... a little hacky but kinda cool
	var a = document.createElement("a")
	a.href = src
	src = a.href
	//
	var exists = false
	for (var i=0; i<document.getElementsByTagName("script").length; i++){
		if (document.getElementsByTagName("script")[i].src == src){
			exists = true
			break
		}
	}
	if (!exists){
		//can this until it works in safari
		/*
		script = document.createElement("script");
		script.src = src
		document.getElementsByTagName("head")[0].appendChild(script)
		*/
		
		//use the hacky method instead 
		document.write("<scr" + "ipt src='" + src + "'></scr" + "ipt>");
	}
	return exists
}

//include the prototype library
//include ("/script/prototype.js")

//include scriptaculous libraries (note, it needs prototype lib included too)
//include ("/script/controls.js")
//include ("/script/dragdrop.js")
//include ("/script/effects.js")

//include getelements 
//include ("/script/getelements.js")

