und wenn du es so machst

function myFunction(var wert1)
{
var wert2 = 10;

also die variable lokal machst