﻿// JScript File

function checkLoginID(ele)
{
GetDa(ele, "dLx");
}

function clrErr(ele, ele1)
{
var x = document.getElementById(ele1);
x.innerHTML = "";
}


function validate(ele, ele1, ele2)
{
var x = document.getElementById(ele);
if(x.value == "")
        {
         var x1 = document.getElementById(ele1);
	     x1.innerHTML = ele2;
	     return false;
        }
}



function checkEmail(ele, ele1, ele2)
{
var x = document.getElementById(ele);
if(x.value == "")
        {
         var x1 = document.getElementById(ele1);
	     x1.innerHTML = ele2;
	     return false;
        }else{
        
             SKSoftHNService.CheckEmail(x.value, OnComplete,  OnError, OnTimeOut);
        }
        
}

/*
ajax call 

*/


 function GetDa(ele, ele1)
    {
    var x = document.getElementById(ele);
  
    
    if(x.value == "")
        {
         var x1 = document.getElementById(ele1);
	     x1.innerHTML = "* Please enter User ID.";
	     return false;
        }else{
            UseCallback(x.value, ele1, 'raju');
             }
    
    }
function checkUserID(arg, context)
    {
    var x = document.getElementById("dLx");
    x.innerHTML = arg;
    }


/*
Ajax2.0
*/

function TestMe(ele, ele2)
    {
    var x1 = document.getElementById(ele);
    
    if(x1.value == "")
        {
         var x2 = document.getElementById(ele2); 
	     x2.innerHTML = "* Please enter User ID.";
	     return false;
        }else {
              SKSoftHNService.CheckEmail(x1.value, OnComplete,  OnError, OnTimeOut);
              }
    }

function OnComplete(arg)
	{
	alert("aaaa");
    var x2 = document.getElementById("dE"); 
    x2.innerHTML =  arg  ;
	return false;
	}

function OnTimeOut(arg)
	{
	alert("timeOut has occured");
	return false;	
	}

function OnError(arg)
	{
	alert("error has occured: " + arg._message);
	}    


/*-------------------------------------------------------------------
 Forum rollovers
-------------------------------------------------------------------
*/
function overThread(obj,col) {
	obj.style.backgroundColor = col; 
	obj.firstChild.style.color = '#FFFFFF'; 
	obj.firstChild.nextSibling.style.color = '#FFFFFF';
}
function outThread(obj,col) {
	obj.style.backgroundColor = '';
	obj.firstChild.style.color = col;
	obj.firstChild.nextSibling.style.color='#000000';
}

function overLink(obj) {
	obj.style.color = '#000000';
}
function outLink(obj,col) {
	obj.style.color = col; 
}
	