// JavaScript Document

// Returns browsers history array length
function historyLength(){ return window.history.length; }

function historyNext(){ 

	//netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
    var url = History.next;
	alert("Next: "+url+" Length: "+	history.length); 
	return url; 
}

function historyPrev(){
	
	//netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

    var url = History.previous;
	alert("Prev: "+url+" Length: "+window.history.length); 
	return url; 
}

//var bodyTag = document.getElementsByTagName('body')[0];
//bodyTag.onunload= function(){alert('Closing')};

window.onbeforeunload = confirmExit;
function confirmExit(){
//alert('Closing: Would you like to save your work?')
}


function redirect() {
	//console.log("REDIRECT");
	window.resizeTo(Math.min(screen.availWidth, 1024), screen.availHeight);
}
