// Bekrefter brukerens aktiviteter med en alert basert på url. // For eksempe vil http://www.amnesty.no/web.nsf/pages/01A70088B13AA39FC1256EC4002E1018?open&confirm=Tipset er sendt // presentere brukeren med en alert med teksten: Tipset er sendt url = location.href; if (url.indexOf('confirm=') > -1) { alert(unescape(url.substring(url.indexOf('confirm=')+8,url.length))) } function getObj(obj) { if (document.getElementById) {return document.getElementById(obj).style;} else if (document.all) {return document.all[obj].style;} else if (document.layers) {return document.layers[obj];} } function setZindex(layr,num) { obj = getObj(layr); obj.zIndex = num; } function show(layr) { obj = getObj(layr); obj.display = "block"; } function hide(layr) { obj = getObj(layr); obj.display = "none"; } function openPopup(url,width,height) { var myPopup; windowprops = "width=" + width + ",height=" + height; if (!myPopup || myPopup.closed){ myPopup = window.open(url ,"popup" ,windowprops); } else{ myPopup.focus(); } } function checkEmail(val) { if (val.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi)) {return true;} else {return false;} } function hideEmail(user,dom) { var rec = user + "@" + dom; var sb_url = "mailto:" + rec; return rec.link(sb_url) }