function showReplaceBox() {
	if(document["frmAdd"]["chkReplace"].checked) {
		document.getElementById("myRow").style.display="block";
	}
	else {
		document.getElementById("myRow").style.display="none"
	}
}

window.onload = function() {
	toggle('forgotHide');
	toggle('horizon');
}

var theGlobalName;

function sendName(theName) {
	theGlobalName = theName;
}

function verify() {
	var changedCase = theGlobalName.toLowerCase();
    msg = "Are you sure you want to " + changedCase + "?";
    return confirm(msg);
}

function toggle (id) {
	if (document.getElementById) {
		var el = document.getElementById(id);
		el.style.display = (el.style.display == 'none') ? 'block' : 'none';
	}
}

function doOpen(objSel) {
	var optVal = objSel.options[objSel.selectedIndex].value;
	if (optVal!='') {
		var arrVal = optVal.split('|');
		var w = window.open(arrVal[1], arrVal[0]);
		w.focus();
	}
}