I want to call a js file from another js file (it needs to be called form another js file as the path will change)

How can i do something like this with java script (the given way does not work):


function open(path){
document.write('<script language="Javascript" src="'+path+'\review.js"></script>')
}



Thanks
Kris