Change Text/Value on Button when clicked not working in FF

Hello everyone,

Basically I am looking to show/hide a DIV with the click of a button.

The script work accordingly in IE but fail in FF.

I am sure I am the problem here.

<script type="text/javascript">

function toggle(box) {
	var el = document.getElementById('box'); = ( != 'none' ? 'none' : '' );
	value = document.getElementById('content').value;
	if(value=="Show Calendar"){
	document.getElementById('content').value="Hide Calendar";
	document.getElementById('content').value="Show Calendar";	

<style type="text/css">
	background-color: #C0C0C0;
	height: 100px;
	width: 100px;


<div id="box">

<input id="content" value="Hide Calendar" type="button" onclick="toggle(box)" />


The issue lies when the button click, you have


which to the function is saying im looking for the box variable from the global scope where as you need it to be a static string been passed to the function


One thing i would like to ask though is why your passing a value to a function that has no use for it? Seems kind of redundant to me