Hey guys,

This is my first post.
Can somebody look over this code and tell me why its not working? When I uncomment //Itemnumber = 1;, it seems to work fine.

Code:
<script language="JavaScript">

//fades layer out
ie5 = (document.all && document.getElementById);
ns6 = (!document.all && document.getElementById);
opac2 = 100;

function fadeOut(itemnumber) {
	//document.write(opac2);
	//itemnumber = 1;
	var idname = "fade" + itemnumber;
		if(opac2 > 0){
		opac = 0;
		opac2-=1;
			if(ie5) document.getElementById(idname).filters.alpha.opacity = opac2;
			if(ns6) document.getElementById(idname).style.MozOpacity = opac2/100;
		setTimeout('fadeOut()', 0);
		//document.write(itemnumber);
	}
}
</script>

<input type="button" value="Delete This User " onClick="fadeOut(1);" >
<a href="
<input type="button" value="Delete This User " onclick="fadeOut(2)" />
<input type="button" value="Delete This User " onclick="fadeOut(3)" />
<input type="button" value="Delete This User " onclick="fadeOut(4)" />


<div id="fade1"> fade 1 here</div>
<div id="fade2"> fade 2 here</div>
<div id="fade3"> fade 3 here</div>
<div id="fade4"> fade 4 here</div>
Cheers guys,

Mark