// JavaScript Document
function checksign1()
{
	with (window.document.frmsign) {
		//var emailID=txtUsersign;
		var user=txtUsersign;
		var pass=txtPasswordsign;
		
	 if(isEmpty(txtUsersign, 'Enter user name')) {	
			return;
		} else if(isEmpty(txtPasswordsign, 'Enter password')) {	
			return;
		return;	
			} else {
        //document.frmSubscribe.action="subscribe.php?subscribe=true";
		
		showHintClient(user.value,pass.value);
		//document.frmSubscribe.submit();		
		}
	}
}

function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHintchecksign").innerHTML=xmlHttp.responseText;
}
}


function showHintClient(str,str1)
{
if (str.length==0)
  { 
  document.getElementById("txtHintchecksign").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="checksign.php";
url=url+"?u="+str;
url=url+"&p="+str1;
//alert(url);
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function checktextbox()
{
	with (window.document.frmsign) {
		//var emailID=txtUsersign;
		var user=txtUsersign;
		var pass=txtPasswordsign;
		
	 if(isEmpty(txtUsersign, 'Enter user name')) {	
			return;
		} else if(isEmpty(txtPasswordsign, 'Enter password')) {	
			return;
		return;	
			} else {
        //document.frmSubscribe.action="subscribe.php?subscribe=true";
		
		submit();
		//document.frmSubscribe.submit();		
		}
	}
}

