﻿// JScript File

function RunLeadCaptureScripts(strType,intSource,sParentInfo) {
    //alert('testing');
    //Get Browser Data gtom the cookie.
    var strBrowserData = readCookie("MIM_BRowserInfo");
    
    LeadCaptureService.RunLeadCapture(strType,intSource,sParentInfo,strBrowserData,CaptureSuccess, CaptureFail);       
    
}

function CaptureSuccess(e){
    
    if (e != null) {	
    
    }
}

function CaptureFail(){

}

function CaptureSNLeads(strPropertyId, strMLSNumber, strNetworkType) {
    
    LeadCaptureService.SaveSocialNetworkingLeads(strPropertyId, strMLSNumber, strNetworkType, SNCaptureSuccess, SNCaptureFail);       
    
}

function SNCaptureSuccess(e){
    
    if (e != null) {	
    
    }
}

function SNCaptureFail(){
//alert('fail');
}


