﻿
    function customCheckUsername(username,check) {
        try {
            
            var urls = "check.aspx?username="+username+"&check="+check;
            //alert(urls);
            $.ajax({
                type: "POST",
                url: urls,
                data: "name=John&location=Boston",
                success: function(msg) {
                    if (msg == "True") {
                    $('#IsUserName').fadeIn(1000);
                    }
                    else {
                    
                        $('#IsUserName').fadeOut(1000);
                        
                    }
                   
                }
            });
           
        }
        catch (e) {
        }       
        
    }
    
    function customCheckEmail(email,check) {
        try {
            
            var urls = "check.aspx?email="+email+"&check="+check;
            //alert(urls);
            $.ajax({
                type: "POST",
                url: urls,
                data: "name=John&location=Boston",
                success: function(msg) {
                    if (msg == "True") {
                    $('#IsEmailerr').fadeIn(1000);
                    }
                    else {
                    
                        $('#IsEmailerr').fadeOut(1000);
                        
                    }
                   
                }
            });
           
        }
        catch (e) {
        }       
        
    }
    
   function customRegistration(email,uname,paswd,check) {
        try {
            
            var urls = "check.aspx?email="+email+"&uname="+uname+"&paswd="+paswd+"&check="+check;
            //alert(urls);
            $.ajax({
                type: "POST",
                url: urls,
                data: "name=John&location=Boston",
                success: function(msg) {
                    if (msg == "True") {
                    
                    
                    $("#RegisterArea").fadeOut(1000);
                    $("#thankyou").fadeIn(1000);
                    
                    }
                    else {
                    
                        
                    }
                   
                }
            });
           
        }
        catch (e) {
        }
        
        
    }

    function customCheckLogin(uname,paswd,check) {
        try {
            
            var urls = "check.aspx?uname="+uname+"&paswd="+paswd+"&check="+check;
            //alert(urls);
            $.ajax({
                type: "POST",
                url: urls,
                data: "name=John&location=Boston",
                success: function(msg) {
                    if (msg == "True") {
                    
                    window.parent.location="default.aspx";
                    
                    }
                    else {
                        $('#invalid').fadeIn("slow"); 
                    }
                   
                }
            });           
        }
        catch (e) {
        }
    }


