 function rebuildRequest(){
 	var index = $("##requestHistory").val();
 	if( index != "null" ){
-		var item = requestHistory[index].DATA;
+		var item = reqHistory[index].DATA;
 		//console.log(item);
 		// main options
 		selectOption("httpMethod",item.HTTPMETHOD);

	});
	
	//json history
	requestHistory = new Array(#arrayLen(rc.requestHistory)#);
	<cfloop from="1" to="#arrayLen(rc.requestHistory)#" index="x">
	requestHistory[#x-1#] = #serializeJSON(rc.requestHistory[x])#;
	</cfloop>
});
function showTab(index){

	$relaxerForm.submit();
}
</script>
</cfoutput>