if ((String(location).substr(0,4))=="file") alert("index.html,window.name 2="+window.name); //only alert if on local hard drive