(function() 
{
	var YDom = YAHOO.util.Dom, YEvent = YAHOO.util.Event;
	
	
    var callback = 
    {
        success: handleSuccess = function(obj)
        	{
    			document.getElementById("whyFameCode").value = obj.responseText;
        	}
    };
	
    
	function initListeners()
	{
		YEvent.on("comment", "focus", 
					function()
					{
						YAHOO.util.Connect.asyncRequest('POST', '/AjaxManager.php', callback, "action=getBlogFormSecurityCode&whyFameCode="+document.getElementById("whyFameCode").value);			
					}
				);
		
	}
	
	YEvent.on(window, "load", initListeners);
	
	//YEvent.onAvailable("page-content", initListeners);
})();

