// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function reveal_counties_and_rep(region, rep) {
	if (document.getElementById) {
		var x = document.getElementById(region).style;
		var y = document.getElementById(rep).style;
		if ((x.display == "block") && (y.display == "block")) {
			x.display = "none";
			y.display = "none";
		} else {
			x.display = "block";
			y.display = "block";
		}
	}
	return false;
}
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		buykacp_over = newImage("images/buykacp-over.gif");
		buykacp_down = newImage("images/buykacp-down.gif");
		preloadFlag = true;
	}
/*	document.frmUserName.txtUserId.focus();
*/}


function forgotPassword() {
    newWindow = window.open("http://web.memberclicks.com/mc/common/forgotpassword.do?hidOrgID=kacp",
    "ForgotPassword",
    "height=150,width=300,menubar=0,location=0,personalbar=0,toolbar=0,titlebar=0,status=0");
    }

  function formSubmit() {
    document.frmLogin.txtUserId.value = document.frmUserName.txtUserId.value;
    document.frmLogin.submit();
    }

  function submit1() {
    document.frmLogin.txtPassword.focus();
    return false;
    }

  function submit2() {
    document.frmLogin.txtUserId.value = document.frmUserName.txtUserId.value;
    myUrlEncode(document.frmUserName.txtUserId.value,document.frmLogin.txtUserId);
    myUrlEncode(document.frmLogin.txtPassword.value,document.frmLogin.txtPassword);
    return true;
    }