//====================================
//	General reusable JS functions (Requires prototype.js)
//====================================

function onblurEle(e){
   //'var id = Event.element(e).id;
  
    var id = document.getElementById(e);
	//$("h-" + id).className = "field-hint-inactive" ; 
	id.className = "field-hint-inactive" ;
	
    	
	
	
};    
    
    
    
function onfocusEle(e){
  //	var id = Event.element(e).id;
  	 var id = document.getElementById(e);
	//$("h-" + id).className = "field-hint" ; 
	id.className = "field-hint" ;
	
};     

function checkLoginID(ele)
{
onblurEle('h-email');
GetDa(ele, "dLx");
}

function checkLoginID2(ele)
{
    onblurEle('h-txtEmail'); 
GetDa(ele, "dLx");
}


function checkEmailID(ele)
{
GetDa(ele, "dLx");
__doPostBack(ele, '');
}


 function GetDa(ele, ele1)
    {
    var x = document.getElementById(ele);
  
    if(x.value == "")
        {
         var x1 = document.getElementById(ele1);
	     x1.innerHTML = "* Please enter email address.";
	     return false;
        }else{
            UseCallback(x.value, ele1, 'raju');
             }
    
    }

function checkUserID(arg, context)
    {
   
    var x = document.getElementById("dLx");
    x.innerHTML = arg;
    }

function checkUserID2(arg, context)
    {

    var x = document.getElementById("dLx");
    x.innerHTML = arg;
    if(arg != "") 
        {
       // btnSubmit_Click();
       __doPostBack('ctl00$ContentPlaceHolder1$btnSubmit', '');
        }
    }    
