<!--
function autotab(original,destination){
if (original.getAttribute&&original.value.length==original.getAttribute("maxlength"))
destination.focus()
}
function updateValueRemem(){
	nval=document.id.remem_value.value;
	
	if(nval==""){
		document.id.remem_value.value="true";
	}else if(nval!=""){
		document.id.remem_value.value="";
	}
}
function createFormLogin(){
	if(BrowserDetect.browser == 'Firefox'){
	/*form="<form name='id' id='id' methode='post' ><table align='right' border='0' cellspacing='0' cellpadding='0'><tr><td width='80' align='left' class='f10' style='padding-right:5px;'>User name: </td><td align='left'><input name='username' type='text' class='f4' style='width:180px;height:10px;' /><input type='hidden' name='pageLogin' value='current' /></td></tr><tr><td align='left' class='f10'>Password: </td><td align='left'><input name='password' type='password' class='f4' style='width:180px;height:12px;' /></td></tr><!--<tr align='center'><td align='left' class='f10'>Apex ID: </td><td align='left' class='f10'><input type='text' name='code_c' class='f4' style='height:10px; width:24px;' onkeyup='autotab(this, document.id.code1)' maxlength='2' />-<input type='text' name='code1' class='f4' style='height:10px;' size='3' onkeyup='autotab(this, document.id.code2)' maxlength='4' />-<input type='text' name='code2' class='f4' style='height:10px;' size='3' onkeyup='autotab(this, document.id.code3)' maxlength='4' />-<input type='text' name='code3' class='f4' style='height:10px;' size='3' onkeyup='autotab(this, document.id.code4)' maxlength='4' />-<input type='text' name='code4' class='f4' style='height:10px;' size='3' maxlength='4' /></td></tr>--><tr><td colspan='2' class='f10'><a href='http://www.apex-portal.com/forgot_pass.php' target='_blank' class='f10' />Password forgotten</a><span class='style9'> |</span> <input type='checkbox' name='remem' value='ok' class='f4' onclick='updateValueRemem()' />Remember me <span class='style9'>|</span>  <input name='submit2' type='button' class='f4' value='Log in' style='width:40px;' onclick='loginAction()' /><input type='hidden' name='remem_value' value=''/></td></tr></table></form>";
	}else{
	form="<form name='id' id='id' methode='post' ><table align='right' border='0' cellspacing='0' cellpadding='0'><tr><td width='80' align='left' class='f10' style='padding-right:5px;'>User name: </td><td align='left'><input name='username' type='text' class='f4' style='width:180px;height:9px;' /><input type='hidden' name='pageLogin' value='current' /></td></tr><tr><td align='left' class='f10'>Password: </td><td align='left'><input name='password' type='password' class='f4' style='width:180px;height:9px;' /></td></tr><!--<tr align='center'><td align='left' class='f10'>Apex ID: </td><td align='left' class='f10'><input type='text' name='code_c' class='f4' style='height:9px; width:20px;' onkeyup='autotab(this, document.id.code1)' maxlength='2' />-<input type='text' name='code1' class='f4' style='height:9px;' size='3' onkeyup='autotab(this, document.id.code2)' maxlength='4' />-<input type='text' name='code2' class='f4' style='height:9px;' size='3' onkeyup='autotab(this, document.id.code3)' maxlength='4' />-<input type='text' name='code3' class='f4' style='height:9px;' size='3' onkeyup='autotab(this, document.id.code4)' maxlength='4' />-<input type='text' name='code4' class='f4' style='height:9px;' size='3' maxlength='4' /></td></tr>--><tr><td colspan='2' class='f10'><a href='http://www.apex-portal.com/forgot_pass.php' target='_blank' class='f10' />Password forgotten</a><span class='style9'> |</span> <input type='checkbox' name='remem' value='ok' class='f4' onclick='updateValueRemem()'/>Remember me <span class='style9'>|</span>  <input name='submit2' type='button' class='f4' value='Log in' style='width:40px;' onclick='loginAction()' /><input type='hidden' name='remem_value' value=''/></td></tr></table></form>";
	}*/
	
	form="<form name='id' id='id' method='post' action='http://www.apex-portal.com/check_login.php' ><table align='right' border='0' cellspacing='0' cellpadding='0'><tr><td width='80' align='left' class='f10' style='padding-right:5px;'>User name: </td><td align='left'><input name='username' type='text' class='f4' style='width:180px;height:10px;' /><input type='hidden' name='pageLogin' value='current' /></td></tr><tr><td align='left' class='f10'>Password: </td><td align='left'><input name='password' type='password' class='f4' style='width:180px;height:12px;' /></td></tr><!--<tr align='center'><td align='left' class='f10'>Apex ID: </td><td align='left' class='f10'><input type='text' name='code_c' class='f4' style='height:10px; width:24px;' onkeyup='autotab(this, document.id.code1)' maxlength='2' />-<input type='text' name='code1' class='f4' style='height:10px;' size='3' onkeyup='autotab(this, document.id.code2)' maxlength='4' />-<input type='text' name='code2' class='f4' style='height:10px;' size='3' onkeyup='autotab(this, document.id.code3)' maxlength='4' />-<input type='text' name='code3' class='f4' style='height:10px;' size='3' onkeyup='autotab(this, document.id.code4)' maxlength='4' />-<input type='text' name='code4' class='f4' style='height:10px;' size='3' maxlength='4' /></td></tr>--><tr><td colspan='2' class='f10' align='left' ><a href='http://www.apex-portal.com/forgot_pass.php' target='_blank' class='f10' />Forgot password</a><span class='style9'> |</span> <input type='checkbox' name='remem' value='ok' class='f4' onclick='updateValueRemem()' />Remember me <span class='style9'>|</span>  <input name='submit2' type='submit' class='f4' value='Log in' style='width:45px;' /><input type='hidden' name='remem_value' value=''/></td></tr></table></form>";
	}else{
	form="<form name='id' id='id' method='post' action='http://www.apex-portal.com/check_login.php' ><table align='right' border='0' cellspacing='0' cellpadding='0'><tr><td width='80' align='left' class='f10' style='padding-right:5px;'>User name: </td><td align='left'><input name='username' type='text' class='f4' style='width:180px;height:9px;' /><input type='hidden' name='pageLogin' value='current' /></td></tr><tr><td align='left' class='f10'>Password: </td><td align='left'><input name='password' type='password' class='f4' style='width:180px;height:9px;' /></td></tr><!--<tr align='center'><td align='left' class='f10'>Apex ID: </td><td align='left' class='f10'><input type='text' name='code_c' class='f4' style='height:9px; width:20px;' onkeyup='autotab(this, document.id.code1)' maxlength='2' />-<input type='text' name='code1' class='f4' style='height:9px;' size='3' onkeyup='autotab(this, document.id.code2)' maxlength='4' />-<input type='text' name='code2' class='f4' style='height:9px;' size='3' onkeyup='autotab(this, document.id.code3)' maxlength='4' />-<input type='text' name='code3' class='f4' style='height:9px;' size='3' onkeyup='autotab(this, document.id.code4)' maxlength='4' />-<input type='text' name='code4' class='f4' style='height:9px;' size='3' maxlength='4' /></td></tr>--><tr><td colspan='2' class='f10' align='left'><a href='http://www.apex-portal.com/forgot_pass.php' target='_blank' class='f10' />Forgot password</a><span class='style9'> |</span> <input type='checkbox' name='remem' value='ok' class='f4' onclick='updateValueRemem()'/>Remember me <span class='style9'>|</span>  <input name='submit2' type='submit' class='f4' value='Log in' style='width:45px;' /><input type='hidden' name='remem_value' value=''/></td></tr></table></form>";
	}
	document.getElementById("formLogin").innerHTML=form;
}
//-->
