function imgAct(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "on.src");
    }
}

function imgInact(imgName) {
    if (document.images) {
    document[imgName].src = eval(imgName + "off.src");
    }
}



function HideObj ( layerName ) {
	document.getElementById(layerName).style.display='none';
	return;
}


function ShowObj ( layerName ) {
	document.getElementById(layerName).style.display='inline';
	return;
}


function check_fields() {

	x = document.mrma_login_form.uname.value

		if (x.length < 2) {
			alert("Username field must be filled in")
			document.mrma_login_form.uname.focus()
			return false
			}

	x = document.mrma_login_form.pword.value

		if (x.length < 2) {
			alert("E-mail field must be filled in")
			document.mrma_login_form.pword.focus()
			return false
			}

	return true
}

function AdminHelp(theURL) {
	window.open(theURL, 'Help','width=300,height=150,toolbar=no,status=no,scrollbars=yes,resizable=yes,location=no,menubar=no');
}


function provinceSelect() {

	selected = ( document.signup.State.selectedIndex )
	//alert ( selected )
	if ( selected == 57 ) {
		document.signup.Province.value = ""
		document.signup.Province.focus()
		document.signup.Country.selectedIndex = 0
	}
	else {
		document.signup.Country.selectedIndex = 216
		document.signup.Province.value = "none"
	}
}

function countryCheck() {
	selected = document.signup.Country.selectedIndex
	//alert(selected)
	if ( selected != 216 ) {
		document.signup.State.selectedIndex = 66
	}
	else {
		document.signup.Province.value = "none"
		document.signup.State.selectedIndex = 18
	}
}