The following script allows one button to have two or more functions
On the first press function one is run, on the second press function two is run.
To show how this works I have used an alert box as function one and two.
<script type="text/javascript">
<!--
var i=0
function dualButt(){
i++
if (i==1){
one()
document.forms[0].elements[0].value="Two"
}
if (i==2){
two()
document.forms[0].elements[0].value="One"
i=0
}
}
function one(){
alert('This is would be the first function')
}
function two(){
alert('This is would be the second function')
}
//-->
</script>
<form>
<input type="button" value="One" onClick="dualButt()">
</form>