var filename = 'locale/EU'; if(filename == 'Error') window.location.href='php/logout.php'; else{ document.write(""); }