HIii DarkHalf!!
Offcource you can do this,
plz try it
***********test.html*******
<script language=javascript>
function replaceJS()
{
obj=document.getElementById("myjs1")
obj.src="myjs2.
js"
}
</script>
<script id="myjs1" src="myjs1.
js"></script>
<input type=button onclick="alertme()" value="showval">
<input type=button onclick="replaceJS()" value="replaceJS">
**********test.html end************
********* myjs1.
js Start************
**********function alertme(){
alert("mee1")
}
********* myjs1.
js End************
********* myjs2.
js Start************
**********function alertme(){
alert("mee2")
}
********* myjs2.
js End************
Hope this will help you :)
Cheers :)
vinod