﻿function tl_login_click()
{
	if (document.getElementById)
	{
		try {
			var u = document.getElementById('tl_username');
			var p = document.getElementById('tl_password');
			
			if ((u != null) && (p != null))
			{
				var myForm = document.createElement("form");
				myForm.method="post";
				myForm.action = 'https://www.bulltrade.com/login.aspx';
				var myU = document.createElement("input") ;
				myU.setAttribute("name", 'u') ;
				myU.setAttribute("value", u.value);
				myForm.appendChild(myU) ;
				var myP = document.createElement("input") ;
				myP.setAttribute("name", 'p') ;
				myP.setAttribute("value", p.value);
				myForm.appendChild(myP)
				var myA = document.createElement("input") ;
				myA.setAttribute("name", 'a') ;
				myA.setAttribute("value", 'login');
				myForm.appendChild(myA)
				document.body.appendChild(myForm) ;
				myForm.submit() ;
				document.body.removeChild(myForm) ;
			}
		}
		catch (err) {alert(err);}
	}
	else
		alert('Unable to login, please upgrade your browser to IE 5.5+, Firefox 1.0+ or Safari 1.0+');														
		
	return false;
}

