
	function checkAllFields(obj) {
		var msg="";
		for (var i=0; i < obj.elements.length ;i++) {
			if (obj.elements[i].value == "") msg="Please fill out all fields.\nAll fields are required.";
			//msg=msg+obj.elements[i].name+": "+obj.elements[i].value+"\n";
		}
		
		if (msg == "") {
			if (obj.user_agree[0].checked) {
				return  confirm("You chose NOT to register. Are you sure?");
			} else return true;
		} else {
			alert(msg);
			return false;
		}
	}

	function JKRocks(objName,action) {
		//alert("document."+objName+".src = 'http://" +strRootHTTP+"b_"+objName+"_"+action+".gif'");
		eval("document."+objName+".src = 'http://" +strRootHTTP+"b_"+objName+"_"+action+".gif'");
	}
	
	function iA_selectAll(formname,action) {
		var obj = eval("document."+formname);
		if (action == 'off' ) {
			for (var i=0;i < obj.elements.length;i++) {
				if (obj.elements[i].type == 'checkbox') obj.elements[i].checked = false;
			}
		} else {
			for (var i=0;i < obj.elements.length;i++) {
				if (obj.elements[i].type == 'checkbox') obj.elements[i].checked = true;
			}
		}
		return false;
	}

	function iA_gotoForm(targetpage,idname,mode,cat) { //assume selectForm form with selectID select-one
		var obj = document.selectForm;
		var index  = obj.selectID.selectedIndex;
		var id = 0; 
		if (index > 0) id = obj.selectID.options[index].value;
		var strURL = "";
		//get page name and idname and id value
		if (targetpage != "" && ( id > 0 && idname != "") )  {
			strURL = targetpage+'?'+idname+'='+id;
	 		//mode and cat, if exist
			if (mode != "") strURL = strURL+'&mode='+mode;
			if (cat != "") strURL = strURL+'&cat='+cat;
		}
		//go to form
		if (strURL != "") document.location = strURL;

		return false;
	}
	
	