function getformvalues (fobj, valfunc){
		
		var str = "";
		var val;
		
		//Run through a list of all objects contained within the form.
		for(var i = 0; i < fobj.elements.length; i++){
				str += fobj.elements[i].name + "=" + escape(fobj.elements[i].value) + "&";
		}
		//Then return the string values.
		return str;
	}



function submitform (theform, serverPage, objID, valfunc){
		var file = serverPage;
		var str = getformvalues(theform,valfunc);
		//If the validation is ok.
			
		obj = document.getElementById(objID);
		//obj.innerHTML="<img style=\"float:left;margin-top:7px;\" src=\"images/wait.gif\" width=\"20\" height=\"20\" />";	
	setTimeout("processajax ('" + serverPage + "', document.getElementById('"+objID+"') , 'post', '" + str + "')",1000);
	setTimeout("obj.innerHTML=''",3000);
	setTimeout("send_simul()",2200);

	

	
	
	}		

