<!--

function fGetElementsByClassName(sClassName){
	var aElements = document.getElementsByTagName("*");
	sClassName = sClassName.replace(/\-/g, "\\-");
	var oRegExp = new RegExp("(^|\\s)" + sClassName + "(\\s|$)");
	var aReturnElements = new Array();
	var oElement;
	for(i=0;i<aElements.length;i++){
		oElement = aElements[i];
		if(oRegExp.test(oElement.className)){
			aReturnElements.push(oElement);
		}
	}
	return aReturnElements;
}

function fSetCookie(sName, sValue, iDays){
	var dToday = new Date();
	var dExpire = new Date();
	if (iDays==null || iDays==0){ 
		iDays=1;
	}
	dExpire.setTime(dToday.getTime() + 1000 * 60 * 60 * 24 * iDays);
	document.cookie = sName+"="+escape(sValue) + ";expires="+dExpire.toGMTString();
}

function fGetCookie(sName){
	var sCookieName = sName + "=";               
	var sDocumentCookie = document.cookie;             
	if (sDocumentCookie.length > 0) {              
	iBegin = sDocumentCookie.indexOf(sCookieName);       
		if(iBegin != -1){           
			iBegin += sCookieName.length;       
			iEnd = sDocumentCookie.indexOf(";", iBegin);
			if(iEnd == -1){
				iEnd = sDocumentCookie.length;
			}
			return unescape(sDocumentCookie.substring(iBegin, iEnd));
		} 
	}
	return null;
}


//-->