function showno()
{
  alert("你尚未登錄");
}

function datacheckL(url)
{

   var arFieldName = new Array("txtlogin","txtpsw");
   var arFieldDescription = new Array("帳號","密碼");

  for(i=0;i<arFieldName.length;i++)
  {
    var Field = document.getElementById(arFieldName[i]).value;
    var FieldLen = Field.length;
    if(FieldLen < 1)
    {
      alert("【"+arFieldDescription[i]+"】欄位不得為空白");
      return -1;
    }
  }
  var l = document.getElementById('txtlogin').value;
  var p = document.getElementById('txtpsw').value;
  location.href = 'public/login_check.php?txtlogin='+l+'&txtpsw='+p+'&URL='+url;
}

function inputPswL(obj){
	if(obj.value == '請輸入密碼')
		document.getElementById(obj.name).value = "";
}
function inputLoginL(obj){
	if(obj.value == '請輸入email')
		document.getElementById(obj.name).value = "";
}
function checkKey(evt){
	if (document.all) evt = event;
	if(evt.keyCode == 13) datacheckL();
}
function chkkey(){
	window.document.onkeyup = checkKey;
}

