// JavaScript Document
$(document).ready(function() {
	 var optionsQShout = { 
        target:        '#qShoutOutput',   
        beforeSubmit:  showShoutRequest,  
        success:       showShoutResponse
    }; 	
    $('#setQShoutform').ajaxForm(optionsQShout);
});

function showShoutRequest() {	
	if(document.getElementById('txtQShoutContent').value==''){
		document.getElementById('hintQShout').style.display='block';
		document.getElementById('hintQShout').innerHTML="Shout missing<br />";
		return false;
	}			
	document.getElementById('qShoutOutput').innerHTML='working..';
} 


function showShoutResponse(responseText, statusText){	
	document.getElementById('hintQShout').innerHTML='';
}  

