// Author: James Craigvar sUserAgent = navigator.userAgent.toLowerCase();var isIE = document.all?true:false;var isOp = (sUserAgent.indexOf('opera')!=-1)?true:false;function pop(oAnchor,sProps,sWindow){	var sUrl = '';	if(oAnchor.getAttribute) sUrl = oAnchor.getAttribute('href');	if(sUrl=='') sUrl = oAnchor.href;	if(sUrl=='') return true;	var sWindowName = sWindow?sWindow:'Veranstaltungsdetails';	if(!sProps) sProps = 'width=300,height=400,scrollbars,resizable,status,location';	if(sUrl) var oPopup = window.open(sUrl,sWindowName,sProps);	if(oPopup && !isOp) oPopup.focus();	return (oPopup)?false:true;}// imageswitchfunction switchImg(sImg,sSrc){	oImg = document.images[sImg];	return !(oImg.src = 'img/' + sSrc);}// With onkeypress event, this verifies 'Enter' keyfunction verifyKey(oElement,oEvent){	if(oEvent.keyCode==13 && oElement.onclick) oElement.onclick();}