function aHref(sUrl){
	location = sUrl
}

function popupWindow(url, title, width, height, scroll, resize) {
	sWf = 'width=' + width + ',height=' + height + ',scrollbars=' + scroll + ',toolbar=no,location=no,directories=no,menubar=no,resizable=' + resize + ',status=no, scrolling=no'
	var oWindow = window.open(url, title, sWf);
	oWindow.focus()
	return oWindow
}


function killCookie(sParam){
	storeCookie(sParam,"empty",new Date("December 24, 1979"))
}

function getCookie(sParam){
	if (typeof(window.aCookies)=="undefined"){
		window.aCookies = new Array()
		sCookie = document.cookie.replace(/ /g,"")
		var aTempC = sCookie.split(";")
		
		for (q=0;q<aTempC.length;q++){
			aParam = aTempC[q].split("=")
			aCookies[aParam[0]] = aParam[1]
		}	
	}
	sRet = (aCookies[sParam]=="undefined" || typeof(aCookies[sParam])!="string") ? null : aCookies[sParam] ;
	if (sRet!=null) sRet = unescape(sRet)

	return sRet
}


function storeCookie(sParam,sValue,tExpires){
	sSet = sParam+"="+escape(sValue)+";"	
	if (typeof(tExpires)!="undefined") sSet += "expires="+tExpires.toGMTString()+";"
	document.cookie = sSet
}