function postForm(formID,url,viewID,waitDiv,waitMsg)
{
	var theForm=document.getElementById(formID);
	if(!theForm)
	{
		alert("internal error!!!");
		return false;
	}
	var params='';
	for (var i = 0; i<theForm.length; i++)
	{
    	if( (theForm.elements[i].type=='radio' || 
    		 theForm.elements[i].type=='checkbox') && 
    		 !(theForm.elements[i].checked) ) 
    	{
    		continue;
    	} 
    	params=params + theForm.elements[i].name + "=" + encodeURI( theForm.elements[i].value );
    	if(i<theForm.length-1)
    		params=params+"&";
    }
	makePOSTRequest(url,viewID,params,waitDiv,waitMsg);
}

