function form_submit_once(form) {
	but_val = "One moment...";
	if (form.submit_button.value != but_val) {
		form.submit_button.value = but_val;
	}
	else {
		alert("The form has already been submitted. Please hold on...");
		return false;
	}
}

if(navigator.appVersion.indexOf("MSIE") != -1){
	temp	= navigator.appVersion.split("MSIE")
	var browser_version	= parseFloat(temp[1])
}

if(document.all && !document.getElementById) {
	document.getElementById = function(id) {
		return document.all[id];
	}
}
function get_scrolloffset_top(){
	/*
	temp	= navigator.appVersion.split("MSIE");
	browser_version	= parseFloat(temp[1]);*/
	if(document.all && browser_version < 6){
		// internet explorer 6 has a funny/quirky way of using the document.body object, so first we'll serve IE < 6
		// http://www.evolt.org/article/document_body_doctype_switching_and_more/17/30655/
		return document.body.scrollTop;
	}
	else if(document.all && browser_version >= 6 && document.documentElement.scrollTop){
		// this one is taken by IE 6, but only if DOCTYPE was set to XHTML and the document didn't start with &lt;xml version="1.0" encoding="iso-8859-1"?&gt;
		return document.documentElement.scrollTop;
	}
	else if(document.all && browser_version >= 6 && document.body.scrollTop){
		// in all other cases, IE 6 takes the normal body object.
		return document.body.scrollTop;
	}
	else return window.pageYOffset;
}


function subnav_newpos(scrolly){
//	if(scrolly < 103) return 103;
	if(scrolly < 103) return 0;
	else return scrolly-103;
}
function subnav_newstyle(scrolly){
	// this function returns a border around/above the subnav (if appropriate).
	if(scrolly < 103) return "still";
	else {
		return "scrolling";
	};
}
function scroll_subnav(){
	if(document.all){
		subnavel = document.all["subnav"];
		subnavel.style.top = subnav_newpos(get_scrolloffset_top())+"px";
		subnav.className = subnav_newstyle(get_scrolloffset_top());
	}
	else{
		subnav = document.getElementById("subnav");
		subnav.className = subnav_newstyle(get_scrolloffset_top());
		subnav.style.top = subnav_newpos(get_scrolloffset_top())+"px";
	}
}