    function email(id) {
        xWindow.open("/popups/email.aspx?type="+escape(id),"email",500,400,'center','middle',0,0,0);
    }
    function unsubscribe() {
        xWindow.open("/popups/unsubscribe.aspx","unsub",500,400,'center','middle',0,0,0);
    }
	function required() {
		document.write("<font class='asterisk'>*</font>");
	}
	function getElement(id) {
		if ( document.all ) {
			return document.all[id];
		} else { 
			return document.getElementById(id);
		}
	}
	
	function fixEmptyNodes() {
		var element = document.getElementsByTagName('*');
		for(var j=0;j<element.length;j++){
			for (var i=0; i< element[j].childNodes.length; i++) {
				var node = element[j].childNodes[i];
				if (node.nodeType == 3 && !/\S/.test(node.nodeValue)) 
				element[j].remove(node);
			}
		}
	}
	
	function trimright(val,rightval) {
		var x = val.substring(val.length - rightval.length,val.length);
		if ( x == rightval ) {
			return val.substring(0,val.length - rightval.length);
		} else {
			return val;
		}
	}	
		
	//: Flash Installed?
	var v = xFlash.versionInstalled;
	if((v < 7)){
		flash=false;
	}
	
	