function hateinput()
{
	var HateInputRequest = new Ajax.Request('http://itp.nyu.edu/~acb363/dwd/tagcloudy/projectx/userhate.php',
	{
		method:'get',
		onSuccess: function( transport )
		{
			var response = transport.responseText || "no response text";
			HateInputTags( transport.responseText );
		},
		onFailure: function()
		{
			alert("Argh!");
		}
	});
		
}


function HateInputTags( responseText )
{
	responseText = responseText.replace( "/n", "" );
	
	var tagcloudh8input = new TagCloudHateInput( $('tagcloudh8input'), '5' );
	var hateinputArray = eval(" (" + responseText + ")" );	
	
	console.log( hateinputArray );
	
		
	for (var i = 0; i < hateinputArray.length; i++)
	{
		var randomvalue = Math.round(Math.random()*5);
		console.log( hateinputArray[i] );
		tagcloudh8input.addNode(new Node(hateinputArray[i], 2));
	}

	tagcloudh8input.draw();

}