var url = window.location.pathname;  
var myPageName = url.substring(url.lastIndexOf('/') + 1);

//pages that shouldn't have the prototype.js script
var excludedPages = new Array(

for ( var i=0, i<excludedPages.length; ++i ){
	if (myPageName != excludedPages[i]) {
		document.write('<scr'+'ipt type="text/javascript" src="js/prototype/prototype.js"></scr'+'ipt>');
What I am trying to do is not get the prototype.js included on those specific pages, as it messes with the forms. However, for all other pages, the prototype.js is fine to be included.

I have tried an if statement like this:
if (myPageName != "admin.php") || (myPageName != "upload.php") {
But whenever I add a 3rd item, it stops working. I would prefer to have an array as it makes sense and is easy to read, but I can't figure out what's going on.

What am I missing?