function SetHover(obj, isHover) {
	if (isHover) {
		obj.className = obj.className.replace('HoverOff', 'HoverOn');
	} else {
		obj.className = obj.className.replace('HoverOn', 'HoverOff');
	}
}

function GetAttributeValue (obj, strName) {
// Used to return the value of a specific attribute of an element
// If the attribute is not valid, "null" is returned
// obj: Object to check
// strName: Name of attribute to look for
	var i, rValue;

	rValue = "";

	for (i=0;i<obj.attributes.length;i++) {
		if (obj.attributes[i].name.toUpperCase() == strName.toUpperCase()) {
			rValue = obj.attributes[i].value;
			break;
		}
	}

	return rValue;
}

function SetAttributeValue (obj, strName, strValue) {
// Used to set the value of a specific attribute of an element
// Returns true if successful, false if unsuccessful
// obj: Object to check
// strName: Name of attribute to look for
// strValue: Value to set
	var i;

	for (i=0;i<obj.attributes.length;i++) {
		if (obj.attributes[i].name.toUpperCase() == strName.toUpperCase()) {
			obj.attributes[i].value = strValue;
			return true;
		}
	}

	return false;
}

function ChatMeNowPopup() {
	var strURL = "http://peoplestrust.custhelp.com/cgi-bin/peoplestrust.cfg/php/enduser/chat.php";
	 	
	window.open(strURL);
	
}