function showText(shortText, fullText) {

	if (document.getElementById(shortText).style.display == 'block') 
	{
		document.getElementById(fullText).style.display = 'block';
		document.getElementById(shortText).style.display = 'none';
	}
	else
	{
		document.getElementById(fullText).style.display = 'none';
		document.getElementById(shortText).style.display = 'block';
	}	
}

var urlAlt = "/mxajax/core/cf/register.cfc";

function sendRegForm() {
		document.getElementById("indicator").style.visibility = 'visible';
		new mxAjax.Data({
		executeOnLoad:true,
		paramArgs: new mxAjax.Param(urlAlt,{param:"fname={fname},lname={lname},org={org},regEmail={regEmail},sector={sector},jobfunc={jobfunc},job={job},captcha_check={captcha_check},captcha={captcha}", cffunction:"registerUser"}),
		postFunction: handleData
	});
	
		function handleData(response) {
			var myHTMLOutput = JSON.parse(response);
			document.getElementById("showResult").innerHTML = myHTMLOutput;
			document.getElementById("indicator").style.visibility = 'hidden';
		}
}

var urlCont = "/mxajax/core/cf/contactUs.cfc";

function sendForm() {
		document.getElementById("indicator").style.visibility = 'visible';
		new mxAjax.Data({
		executeOnLoad:true,
		paramArgs: new mxAjax.Param(urlCont,{param:"name={name},company={company},email={email},tel={tel},msg={msg},captcha_check={captcha_check},captcha={captcha}", cffunction:"sendContactForm"}),
		postFunction: handleData
	});
	
		function handleData(response) {
			var myHTMLOutput = JSON.parse(response);
			document.getElementById("showResult").innerHTML = myHTMLOutput;
			document.getElementById("indicator").style.visibility = 'hidden';
		}
}