We hope you sign up soon! ', { title: 'Sign up', titleClass: 'info', callback:function(val){ },zIndex:'100',width:'420px'} ); }else{ $('.inSpanUnlockDownloadEmployeeBtn'+employeeId).html('Unlock Contact'); $('.inSpanUnlockEmployeeBtn'+employeeId).html('Unlock Contact'); $.jGrowl(obj.msg, { sticky: false, theme: 'error'}); } } }); return param; } //function to unlock contact and update customer's bonus/unlock quota function unlock_contact(emp_id, exp_type){ var param = ''; $.ajax({ type: 'POST', url: "https://app.lead411.com/profile_page/unlock_contact", async:false, data: {employee_id:emp_id, export_type:exp_type }, success: function(data) { if(data=='success'){ unlock_employee_record(emp_id); } param = data; } }); return param; } function search_contact(emp_id, crm, crm_format){ var param = ''; $.ajax({ type: 'POST', url: "https://app.lead411.com/profile_page/search_person", async:false, data: {employee_id:emp_id, crm:crm,crm_format:crm_format }, success: function(data) { var obj = jQuery.parseJSON(data); param = obj.status; if(obj.status == 'found'){ param = obj.msg; } } }); return param; } $(document).ready(function(){ open_chart(); }); $('document').ready(function() { $(".rollover").css({'opacity': '0'}); $('.img_list a').hover( function() { $(this).find('.rollover').stop().fadeTo(500, 1); }, function() { $(this).find('.rollover').stop().fadeTo(500, 0); } ); $("#edit_btn").live("click",function() { var text_info = $("#comp_info").html(); var address = $("#comp_address").text(); var city = $("#comp_city").text(); var state = $("#comp_state").text(); var zip = $("#comp_zip").text(); var phone = $("#comp_phone").text(); phone = (phone == 'N/A') ? '' : phone; var fax = $("#comp_fax").text(); fax = (fax == 'Not Available') ? '' : fax; var form_info = '