/*
Add-to-favorites Script
Created by David Gardner (toolmandav@geocities.com)
No warranty of any kind comes with this script!
Permission granted to Dynamic Drive (http://dynamicdrive.com) 
to post and feature this script on their DHTML archive
*/

var bookmarkurl="http://www.uabmsa.org/"
var bookmarktitle="MSA@UAB"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

/********************************************/

/*
alterCate script - clears text box default text
onFocus, restores when not
http://chrisken.utacm.org/code/
*/
function alterCate(elm, onoff)
{
	if (typeof(onoff) == "undefined" )
	{
		onoff = "blur";
	}

	if (!elm.base)
	{
		elm.base = elm.value;
	}

	if (elm.value == elm.base && onoff != "blur")
	{
		elm.value = "";
	}
	else if (elm.value == "" && onoff == "blur")
	{
		elm.value = elm.base;
	}
}