window.addEvent('domready', function() {
		myAutoComplete=new AutoComplete($('faqsearch'));
		if($('config_select'))
			$('config_select').addEvent('change', function(evnt){
				if(this.getValue()!="")
					window.open(secureuri+'/faq/setup/index/id/'+this.getValue(),'',"width=1100,height=800,status=no,toolbar=no,menubar=no,scrollbars=yes");

			});

		$$('.devicerow').addEvent('click',function(evnt){
			window.location.href = (this.getElement('a').href);
		});


		$('faqsearch').focus();
		$('faqsearch').addEvent('click',function(evnt) {
			this.value="";
		});
		$('faqsearch').addEvent('keypress',function(evnt) {
			this.value="";
			this.removeEvents('keypress');
			

			
		});

});

	if($('faqsearch_commit'))
		$('faqsearch_commit').addEvent('click', function(evnt) {
			var evnt = new Event(evnt);
			evnt.stop();
			this.up('form').submit();
		});

	if($('contactlink'))
		$('contactlink').addEvent('click', function(evnt) {
			location.href = '/faq/show/category/id/1/type/contact'
		});


