anchor.diff:       	  
        	if(errors != ""){
        	    alert(errors);
  +     	    $('uploadStatus').style.display = "none";
        	    return false;
        	 }
  -     	 else {document.forms[0].submit();}
  +     	 else {
  +	     	$('uploadForm').submit();
  +     	 	//document.forms[0].submit();
  +     	 }
        	 
        }
  +     
  +    var TextFormList =	{
  +    	'processTextForm' : function ()	{
  +		     if($('typeListIds').value != "" && $('listName').value != "")	{
  +		     
  +		     	$('uploadStatus').style.display = "";
  +		     	//construct array
  +		     	var ids = Array();
  +		     	ids = $('typeListIds').value.split(",");
  +		     	//clean on the sside
  +		     	//ajax call
  +		     	try	{
  +			     	if($('typeSelector').value == "patient")	{
  +				    	DynamicListHelper.createPatientList(ids, $('listName').value, TextFormList.processTextForm_cb);
  +				    }
  +				    else	{
  +				    	DynamicListHelper.createGeneList(ids, $('listName').value,TextFormList.processTextForm_cb);
  +				    }
  +			    }
  +			    catch(err)	{
  +				    $('uploadStatus').style.display = "";
  +			    }
  +		     	
  +		     }
  +		     else	{
  +		     	alert("Please fill in all fields");
  +		     } 
  +	    },
  +	    'processTextForm_cb' : function(res)	{
  +	    	//clear form, refresh lists
  +	    	if(res != "pass")
  +	    		alert("List did not save correctly, please try again.");
  +	    		
  +	    	$('typeListIds').value = "";
  +	    	$('listName').value = "";
  +	    	
  +	    	$('uploadStatus').style.display = "none";
  +	    	generic_cb("none"); //reload all sidebars
  +	    }
  +	};
    
   </script>
  -
  +<div style="text-align:right; margin:10px;">
  +<a href="#" onclick="javascript:scroll(0,0);return false;">[top]</a>
  +</div>
  
positive.code: 			catch(err)	{}
  		}
  	};
  </script>
  <style>	
  	.status {
  
negative.code: 
  <span id="info">&nbsp;</span>
  
  <div style="text-align:center">
  	<a href="#geneLists">Gene Lists</a> | 
  	<a href="#patientLists">Patient Lists</a> | 
  	<a href="#addList">Add List</a>
  </div>
  <a name="patientLists"></a>
  <fieldset class="groupList" id="patientListsFS">
  	<legend onclick="new Effect.toggle('patContainer')">
  		Patient Lists
  	</legend>
  	<div id="patContainer">
  		<br/>
  		<div id="patientListDiv"></div>	
  		<script>ManageListHelper.getDefaultPatientLists();</script>
  		<div id="defaultPatientListDiv"></div>	
  		<script>ManageListHelper.getPatientLists();</script>
  		
  		
  		<div id="listDiv" />
  			New List Name:<input type="text" id="patientGroupName"/>
  			<b><input type="button" onclick="ManageListHelper.groupSelectedLists('patientListsFS', $('patientGroupName').value,'join')" value="Join Selected"/></b>	
  			<b><input type="button" onclick="ManageListHelper.groupSelectedLists('patientListsFS', $('patientGroupName').value,'intersect')" value="Intersect Selected"/></b>	
  			<span class="status" id="patientGroupStatus"></span>
  		</div>
  		<div id="PatientDIDListMarker">
  			&nbsp;
  		</div>
  	</div>
  </fieldset>
  
  <a name="geneLists"></a>
  <fieldset class="groupList" id="geneListsFS">
  	<legend onclick="new Effect.toggle('gContainer')">
  		Gene Symbol Lists
  	</legend>
  	<div id="gContainer">
  	<br />
  	
  	<div id="geneListDiv"></div>
  