var submit = false;
var current = 1;
var last = 4;
var br;

if(navigator.appName == 'Microsoft Internet Explorer' && document.all != null) {
	br="IE";
} else if (navigator.userAgent.match(/Safari/i)) {
	br = "S";
} else {
	br="N"
}

function CanWe() {
	if (!submit) {
		Next();
	}
	
	return submit;
}

function Next() {
	var hide = 'step' + current;
	current++;
	var show = 'step' + current;
	
	if (current > last) {
		submit = true;
	}
	
	//alert('show: ' + show + "\n hide: " + hide);
	
	document.getElementById(hide).style.display = 'none';
	document.getElementById(show).style.display = 'block';
	if (br != 'S'){
		top.location.href = '/firstdallas/#';
	}
}

function Previous() {
	var hide = 'step' + current;
	current--;
	var show = 'step' + current;
	document.getElementById(hide).style.display = 'none';
	document.getElementById(show).style.display = 'block';
	if (br != 'S'){
		top.location.href = '/firstdallas/#';
	}
}
