window.addEvent('domready', function(){
//we will display the first a element in the element with id linklist
// display the href of the first a element of linklist --> http://link1.com
	alert('Changing '+$('linklist').getElement('a').get('href'));
	// change the link of the first a element
	// of linklist to http://www.catswhocode.com
	$('linklist').getElement('a').set('href','http://www.catswhocode.com')
	// display the href of the first a element
	// of linklist which is now -> http://www.catswhocode.com
	alert('the new href is '+$('linklist').getElement('a').get('href'));
});