anchor.diff:  			link.innerHTML = "Show stack trace";
   			trace.style.display = "none";
   		}
  +	}
  +	
  +	/** 
  +	 * This function is called upon clicking the 'reportBug' button and trims short the
  +	 * stacktrace in case it is an old version of IE so that it doesn't exceed the 
  +	 * maximum supported length
  +	 */
  +	function preProcess(){
  +		var stackTrace = document.reportBugForm.stackTrace.value;		
  +		if(stackTrace && $j.browser.msie && $j.browser.version < 8 && $j.trim(stackTrace).length > MAXIMUM_LENGTH){			
  +			stackTrace = $j.trim(stackTrace).substr(0,MAXIMUM_LENGTH);
  +			document.reportBugForm.stackTrace.value = stackTrace;
  +		}
  +		return true;
   	}
   </script>	
   
  
positive.code: <h2>An Internal Error has Occurred</h2>
  
  <script>
  	function showOrHide() {
  		var link = document.getElementById("toggleLink");
  		var trace = document.getElementById("stackTrace");
  
negative.code: 
  <div>
  
  <form name="reportBugForm" action="${reportBugUrl}" target="_blank" method="POST" onsubmit="return preProcess()">
  	<input type="hidden" name="openmrs_version" value="${openmrs_version}" />
  	<input type="hidden" name="server_info" value="${server_info}" />
  	<input type="hidden" name="username" value="${username}" />
  