function disableSubmit(id) {
	var iSubmit = $("#"+id);
	iSubmit.attr("disabled", "true");
	iSubmit.attr("value", "Submit");
	return true;
}

function doInit() {
}

function selChange(dropdown, url)
{
	var myindex  = dropdown.selectedIndex
	var SelValue = dropdown.options[myindex].value
	var baseURL  = url + SelValue;
	top.location.href = baseURL;
    
	return true;
}

function textDefault(e, str) {
	$(e).ready(function() {
		if($(e).val() == '')
			$(e).val(str);
	});
	$(e).blur(function() { 
		if($(e).val() == '')
			$(e).val(str);
	});
	$(e).focus(function(){
		if($(e).val() == str)
			$(e).val('');
		else
			$(e).select();
	});
}

function showCaptcha() {
	$("#captcha").show();
	var iSubmit = $("#comment-add input[@type='submit']").get(0);
	iSubmit.removeAttribute("disabled");
}

function loadLatestPodcast(file_url, title) {
	$('#latest-podcast-img').hide();
	AudioPlayer.embed("latest_podcast", {  
			    soundFile: file_url,  
			    titles: title,
			    autostart: 'yes'  
			});
}