I would also question the wisdom of having a function named "position" as well as using "position" for your form and select id's.
well, firstly, two elements with the same id is illegal html and bound to get you in trouble at some point.
and from what I recall, having a function and an element id with the same name makes IE wet its pants.
javascript is case sensitive, remember, so you can even get away with this if you're completely out of ideas:
Code:
function posiTion(){
var pos = document.getElementById('positiOn').value;
}
<form id="poSition">
<select id="positiOn" onclick="posiTion()">
although I prefer to make things more understandable:
Code:
function getPosition(){
var pos = document.getElementById('selpos').value;
}
<form id="posform">
<select id="selpos" onclick="getPosition()">
although really your getPosition function doesn't do a whole lot - you could just as easily do
Code:
function iFrameWrite(){
var pos = document.getElementById('selpos').value;
var month = getMonth();
var day = getDay();
var year=new Date();
var address = "http://www.example.com/" + pos + day + "_" + month + "_" + year.getFullYear() + ".html";
document.getElementById(id).src = address;
}
meaning you can scrap the getPosition function altogether and keep "pos" as a local variable