	var oLastBtn=0;
	function RaiseButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		var bChosen = false;
		if(oLastBtn && oLastBtn != oBtn){
			HideButton();
		}
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Up";
			oLastBtn=oBtn;
			}
		else {
		oLastBtn = 0;
		}
	}
	function DepressButton(){
		window.event.cancelBubble=true;
		oBtn = window.event.srcElement;
		if(oBtn.buttonType){
			oBtn.className = oBtn.buttonType + "Down";
		}
	}
	function HideButton(){
		if ((oLastBtn.buttonType == "LeftNavChosen") || (oLastBtn.buttonType == "LeftNavSubChosen") || (oLastBtn.buttonType == "appNavChosen") || (oLastBtn.buttonType == "appNavSubChosen")) {
			oLastBtn.className = oLastBtn.buttonType;
		}
		else {
		oLastBtn.className = oLastBtn.buttonType + "Off";
		}
	}
	function callpage(htmlurl){
		var newwin=window.open(htmlurl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=2,width=100,height=100');
		return false;
	}
	function callpagesc(htmlurl,wwidth,wheight){
		var newwin=window.open(htmlurl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=2,width=' + wwidth +',height='+ wheight);
		return false;
	}
    function AutoAdvance(max,current,next)
    {
        if(current.value.length == max)
            next.focus();
    }
   	function openurl(url,location){
   		var MSIE=navigator.userAgent.indexOf("MSIE");
	    var NETS=navigator.userAgent.indexOf("Netscape");
		var OPER=navigator.userAgent.indexOf("Opera");
		if((NETS>-1) || (OPER>-1)) {
			callpage(url);
		} 
		else {
			window.open(url, location);
		}
	}
	function closeurl(url){
   		var MSIE=navigator.userAgent.indexOf("MSIE");
	    var NETS=navigator.userAgent.indexOf("Netscape");
		var OPER=navigator.userAgent.indexOf("Opera");
		if((NETS>-1) || (OPER>-1) || window.opener!=null) {
			window.opener.location=(url);window.opener=null;window.close();
		} 
		else {
			window.top.location=(url);
		}
	}