﻿//window.onbeforeunload = function (e) {

//return "are you sure?"



var backButtonPressed = 1; 
	function goBack() {
	
		if (backButtonPressed == 1) {
			backButtonWasPressed();
		}
	}
	
	
	function backButtonWasPressed() {
        var hashVal = window.location.hash;
        
        if(hashVal.length > 1){
            validate(hashVal.substring(1));
        }
	}
	

