// JavaScript Document
var myPass;
var myInput;
var hsearch;
var hinput;
var inpchk = false;
		window.onload = function() {
			myPass = document.getElementById('pwd-tml-1');
			myInput = document.createElement('input');
			if(document.getElementById('sidebar-wrap')){
				sidebar = document.getElementById('sidebar-wrap');
				content = document.getElementById('content-norm');
				sidebar.style.height = content.offsetHeight - 30 + 'px';
			}
			//ulw = document.getElementById('menu-main-menu').offsetWidth;
			//uln = document.getElementById('navbar').offsetWidth;
			//totalnav = uln - ulw;
			//document.getElementById('navfiller').style.width = totalnav + 'px';
			//hsearch = document.getElementById('header-search');
			//hinput = document.getElementById('s');
			//hsearch.onmouseover = makeOpaque;
			//hsearch.onmouseout = makeTrans;
			//hinput.onfocus = makeOpaque;
			//hinput.onblur = makeTrans;
			myInput.setAttribute('type',"text");
			myInput.setAttribute('class',"input");
			myInput.value = "Password";
			myInput.setAttribute('onfocus',"passob()");
			myInput.setAttribute('id',"pass_input");
			myPass.setAttribute('onblur', "passblur()");
			myPass.parentNode.replaceChild(myInput, myPass);
			
			document.getElementById('log-tml-1').value = "Member ID";
			document.getElementById('log-tml-1').setAttribute('onfocus',"logob()");
			document.getElementById('log-tml-1').setAttribute('onblur',"loginblur()");
		}
		function logob() {
			if(document.getElementById('log-tml-1').value == "Member ID"){
			document.getElementById('log-tml-1').value = "";
			}
		}
		function passob() {
			myInput.parentNode.replaceChild(myPass, myInput);
			setTimeout(function() { myPass.focus(); }, 5);
		}
		function loginblur() {
			if(document.getElementById('log-tml-1').value == "" || document.getElementById('log-tml-1').value == "Member ID" ){
				document.getElementById('log-tml-1').value = "Member ID";
			}
			}
		function passblur() {
			if(document.getElementById('pwd-tml-1').value == ""){
				myPass.parentNode.replaceChild(myInput, myPass);
			}
		}
		function popUpWindow(pagename) {
    		var popUp_Window = window.open(pagename,"Pop_up2","toolbar=no,directories=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=350,height=380,innerWidth=350,innerHeight=380");
    perseus=popUp_Window;
    setTimeout('perseus.focus()',150);
		}
		function makeOpaque(){
			if(this == hinput){
				inpchk = true;
			}
			hsearch.style.filter = "filter:alpha(opacity=100)";
			hsearch.style.opacity = 1.0;
			
		}
		function makeTrans(){
			if(!inpchk || this == hinput){
			hsearch.style.filter = "filter:alpha(opacity=60)";
			hsearch.style.opacity = 0.6;
			inpchk = false;
			}
		}

