function captcha_play(){
	var d = new Date();
	var rand = d.getTime();
	document.write ('<embed src="captcha.php?r='+rand+'&t=snd" autostart="true" hidden="true" loop="false"><noembed><bgsound="captcha.php?r='+rand+'&t=snd"></noembed>');
}
var captcha_sndTimeout ;
function captcha_playIt(soundUrl) {
	clearTimeout(captcha_sndTimeout)
	var soundFrameObj = document.getElementById("soundframe");
	soundFrameObj.src = "about:blank";
	soundFrameObj.src = soundUrl;
	captcha_sndTimeout  = setTimeout("captcha_endPlay()", 20000);
}
function captcha_endPlay() {
	clearTimeout(captcha_sndTimeout)
	document.getElementById("soundframe").src = "about:blank";
}
function captcha_refresh(){
	captcha_endPlay();
	document.getElementById('captchastr').value = '';
	var new_src = baseHref +  'captcha.php?t=img&rf=' + new Date().getTime() ;
	document.getElementById('captcha_img').src = new_src ;
}
