function newFreeCap(d,a){if(document.getElementById){var c=document.getElementById("tx_srfreecap_pi2_captcha_image_"+d),b=c.src.split("&"),e=typeof b[2]!="undefined"&&b[2].indexOf("L=")!=-1;c.src=b[0]+"&"+b[1]+(e?"&"+b[2]:"")+"&set="+Math.round(Math.random()*1E5)}else alert(a?a:"Sorry, we cannot autoreload a new image. Submit the form and a new image will be loaded.")}
function playCaptcha(d,a,c){if(document.getElementById){var b=document.getElementById("tx_srfreecap_pi2_captcha_playAudio_"+d);for(a=a+"&nocache="+Math.random();b.firstChild;)b.removeChild(b.firstChild);var e=document.createElement("object");e.setAttribute("id","tx_srfreecap_pi2_captcha_playAudio_object"+d);e.setAttribute("type","audio/x-wav");e.setAttribute("data",a);e.setAttribute("height",0);e.setAttribute("width",0);try{e.innerHTML='<a href="'+a+'">'+(c?c:"Sorry, we cannot play the word of the image.")+
"</a>"}catch(f){e.setAttribute("altHTML",'<a href="'+a+'">'+(c?c:"Sorry, we cannot play the word of the image.")+"</a>")}b.appendChild(e);window.setTimeout("addAudioCaptchaParams('"+d+"');",50)}else alert(c?c:"Sorry, we cannot play the word of the image.")}
function addAudioCaptchaParams(d){d=document.getElementById("tx_srfreecap_pi2_captcha_playAudio_"+d).firstChild;var a=d.getAttribute("data");a={type:"audio/x-wav",filename:a,src:a,autoplay:true,autoStart:1,hidden:true,controller:false};for(var c in a)if(a.hasOwnProperty(c)){var b=document.createElement("param");b.setAttribute("value",a[c]);b.setAttribute("name",c);d.appendChild(b)}};
