//this is a very simple script that shows an element and hides another, the first var passed is what you hide, the next is what you'll show
//the elements in html must have corresponding id s


function flip(idnow,idnext){
	//idnow (which to hide, or current), idnext (which to show)
	hidediv(idnow);
	showdiv(idnext);

}

function hidediv(id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}