function setQaAction(qa) {
	buttontarg=qa;
}

function initQa() {
	var cDiv = document.getElementById('qaform');
	if(cDiv!=null) {
		$.get(csoPath + '/qa.php5?language=' + language[1], {}, function(data){
			$("#qaform").html(data);
		});
		
	}
}

function sendQaForm() {
	var str = $("form[name='QAFORM']").serialize();

	$.post(csoPath + '/qa.php5?language=' + language[1] + '&qa=' + buttontarg, str, function(data){
			$("#qaform").html(data);
	});
}

function initQaContact() {
	var qDiv = document.getElementById('qaform');
	if(qDiv!=null) {
	
	var c = document.getElementById('contactform');
	var b = document.body;
	if(c!=null) {
		b.removeChild(c);
	}
	var cDiv = document.createElement('div');
	cDiv.setAttribute('id','contactform');
	qDiv.appendChild(cDiv);
	
	var bt = document.getElementById('contactButton');
	bt.style.display='none';
	$.get(csoPath + '/contact.php5?language=' + language[1], {}, function(data){
			$("#contactform").html(data);
		});
		
	}
}