Can the same function be used multiple times in a single file?
document.getElementById('one').onlick = function test(e)
{
var key = e.which;
if(key === 13)
{
document.getElementById('two').click();
return true;
}
}
Another example is
document.getElementById('elem').onlick = function test(e)
{
document.getElementById('divtext').innerHTML='';
e.preventDefault();
x--;
}