// JavaScript Document var IeAlpha; var IsRuning; var FadeIn; IeAlpha = 100; function submitThisForm(e) { var resultat = testForm(e,attTestas) if (resultat) { document.getElementById("verifyFrm").value = "verified"; e.action = window.location; } return resultat; } function FadeImage(e) { var avskaladURL = document.getElementById('storbild').src; if(IsRuning != 1) { if(document.getElementById('storbild').src.substring(avskaladURL.length-e.length, avskaladURL.length) != e) { IsRuning = 1; document.getElementById('storbild').style.opacity = "1"; t=setInterval("fade('"+e+"')", 10); } } } function fade(e) { if(FadeIn != 1) { IeAlpha-=10; document.getElementById('storbild').style.filter = "alpha(opacity=" + IeAlpha + ")"; currentAlpha = parseFloat(document.getElementById('storbild').style.opacity); document.getElementById('storbild').style.opacity = currentAlpha-0.1; } else { IeAlpha+=10; document.getElementById('storbild').style.filter = "alpha(opacity=" + IeAlpha + ")"; currentAlpha = parseFloat(document.getElementById('storbild').style.opacity); document.getElementById('storbild').style.opacity = currentAlpha+0.1; if(parseFloat(document.getElementById('storbild').style.opacity) == 1) { FadeIn = 0; clearInterval(t); IsRuning = 0; } if(IeAlpha == 100) { FadeIn = 0; clearInterval(t); IsRuning = 0; } } if(parseFloat(document.getElementById('storbild').style.opacity) == 0) { document.getElementById('storbild').src = e; FadeIn = 1; } if(IeAlpha == 0) { document.getElementById('storbild').src = e; FadeIn = 1; } }