document.write('<div class="" id="dvtmb"></div>')
kzam("timber",0)
function frnd(){
	usn = document.getElementById("txtusn").value
	psw = document.getElementById("pswpsw").value
	kzam("login", usn + '::' + psw)
	//alert("Included")
}
function reg(cd){
	if(cd){
		if(isNaN(cd)){
			alert("Sorry, didn't recognize that")
		}
		else{
			window.location.href = (cd == 2 ? "future-value-register-corp.html" : "future-value-register.html")
		}
		
	}
	else{
		tx = prompt("Please enter the Company Code")
		if(tx){kzam("creg",tx)}
	}
}
function timb(yn){
	var tm = document.getElementById("dvtmb")
	//alert(yn)
	if(yn == 'y'){
		tm.innerHTML = '<a href="future-value-unlimited-login.html" style="color:#ffffff" class="ct-reg"><b>&nbsp;&nbsp;My Account<br>&nbsp;&nbsp; Page</b></a>'
	}
	else{
		if(yn.indexOf("::") + 1){
			 auto = yn.split("::")
			 eml = auto[0]
			 psw = auto[1] 
		}
		else{
			 eml = ""
			 psw = ""	
		}
		tm.innerHTML = '<a href="javascript:reg()" onMouseover="Activate(\'main01\');return true;" onMouseout="Deactivate(\'main01\')"><img src="assets/fv-left-mb-01-n.gif" alt="Register" width=119 height=25 border=0 name="main01"></a><br><div style="width:119px; height:107px; background:url(assets/fv-login-background.gif) no-repeat;">\n<img src="assets/t.gif" width="1" height="3" border="0" alt="Future Value"><br>\n<img src="assets/fv-login-un.gif" alt="Username" width=119 height=20 border=0><br>\n<input type="text" class="login-username" value="' + eml + '" id="txtusn"><br>\n<img src="assets/t.gif" width="1" height="12" border="0" alt="Future Value"><br>\n<img src="assets/fv-login-pw.gif" alt="Password" width=119 height=8 border=0><br>\n<input type="password" class="login-password" value="' + psw + '" id="pswpsw"><br>\n<a href="javascript:frnd()"><img src="assets/fv-left-go.gif" alt="Go" width=20 height=12 border=0 style="margin:2px 0px 0px 94px;"></a><br>\n</div>'		
	}
}

