/**
 * Changes the image on the place holder with the new image.
 * @param {Object} newPic
 * @param {Object} placeHolder
 */
//swaps and image with a new image.
function swapPic(newPic, placeHolder){
    if (document.getElementById) {
        document.getElementById(placeHolder).src = newPic;
        //return false;
    } else {
        //return true;
    }
}
function fTab(s){
	var qf = document.getElementById('qfcontents');
	var af = document.getElementById('afcontents');
	if(qf){
		qf.className = (s=="q") ? "show" : "hide";
	}
	if(af){
		af.className = (s=="a") ? "show" : "hide";
	}
	var qf = document.getElementById('qfTab');
	var af = document.getElementById('afTab');
	if(qf){
		qf.className = (s=="q") ? "currentQFTab" : "notcurrentQFTab";
	}
	if(af){
		af.className = (s=="a") ? "currentAFTab" : "notcurrentAFTab";
	}
}