function getCheckedValue(radioObj) {

	if(!radioObj)
		return "";
	var radioLength = radioObj.length;

	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

/*load the javascript for the module into the document head... if we don't do this we can't pickup the script
with the module thats loaded through AJAX*/
function insertScriptandStyle(scriptPath,stylePath){

	moduleStyle = buildHtml.createLink(stylePath);
	/*we have to get the head this way... getElementById won't work on a head cause it can't have an id*/
	docHead = document.getElementsByTagName("head")[0];
	
	/*we can have multiple scripts, so loop through the list and add them all*/
	scriptArray = scriptPath.split(",");
	for(i=0;i<scriptArray.length;i++){
		moduleScript = buildHtml.createScript('text/javascript',scriptArray[i]);
		docHead.appendChild(moduleScript);
	}
	/*make sure to load styles first, or some of the javascript stuff buggers up*/
	docHead.appendChild(moduleStyle);
	/*try to run any functions that may need to be ran for the script*/
	try{
		setTimeout('runPublicModule()',1500);
	}
	catch(e){
	}

}






