var frame_url = encodeURI(window.location.pathname+window.location.search);
var frame_host =  window.location.hostname;
document.write('<SCRIPT LANGUAGE="JavaScript">')
document.write('if (parent.frames.length < 1)')
document.write('{')
document.write('document.location.href = "http://"+frame_host+"/index.php?page="+frame_url;')
document.write('}')
document.write('</SCRIPT>')
document.write('<script language="JavaScript1.2">')
document.write('function disableselect(e){')
document.write('return false')
document.write('}')
document.write('function reEnable(){')
document.write('return true')
document.write('}')
document.write('document.onselectstart=new Function ("return false");')
document.write('if (window.sidebar){')
document.write('document.onmousedown=disableselect')
document.write('document.onclick=reEnable')
document.write('}')
document.write('</script>')
