function clearField(el, txt) {
    if (el.value == txt) {
        el.value = "";	
        el.focus();
    }
}

function inValue(el, txt) {
    if (el.value == "") {
        el.value = txt;
    }
}

function sameHeight(first, second)
{
    var firstDiv = document.getElementById(first);
    var secondDiv = document.getElementById(second);
	var welcomeNote = document.getElementById("slideshow-welcome");
    if( firstDiv && secondDiv ) {
        var setHeight = secondDiv.offsetHeight - 32;
		var noteHeight = welcomeNote.offsetHeight;
			if(noteHeight >= setHeight){
				firstDiv.style.height = noteHeight + "px";
			}else{
				firstDiv.style.height = setHeight + "px";
			}
    }
}

function displayAltContent(){
    var params = location.href.split("?");
    window.location = "NoFlash.action?" + params[1] + "&from=" + params[0];
}

window.onload = function (){
    if( document.getElementById("main-box") ) {
        sameHeight("main-box", "member-signin");
    }
}