/************************************************/
/* IPB3 Javascript								*/
/* -------------------------------------------- */
/* acp.homepage.js - Homepage javascript 		*/
/* (c) IPS, Inc 2008							*/
/* -------------------------------------------- */
/* Author: Brandon Farber						*/
/************************************************/

ACPHomepage = {
	
	/*------------------------------*/
	/* Constructor 					*/
	init: function()
	{
		Debug.write("Initializing acp.homepage.js");
		
		document.observe("dom:loaded", function(){
			ACPHomepage.autoComplete = new ipb.Autocomplete( $('members_display_name'), { multibox: false, url: acp.autocompleteUrl, templates: { wrap: acp.autocompleteWrap, item: acp.autocompleteItem } } );
		});
	},
	
	editMember: function()
	{
		if ( $('members_display_name').value == "" )
		{
			alert("Нужно ввести имя пользователя!");
			return false;
		}
		
		return true;
	}
};

ACPHomepage.init();