﻿
$(document).ready(function() {
    
   setTimeout("AjaxCallMentors()",9000); 

 });


function AjaxCallMentors()
{
     var pid = $.jqURL.qs('partnerid');
     var data = Math.random()+"&loc=partner&count=6&"+pid;
      
      $.ajax({
                   type: "GET",
                   url: "/publisha.templates/randommentors.aspx",
                   datatype:'html',
                   data: data,
                   async: false,
                   success: function(msg){
                        
                      
                      if (msg.length > 11 )
                      {
                       $('#MasterMentorControl').html(msg);
                      }
                        
                      setTimeout("AjaxCallMentors()",9000);            

                   },
                   error: function(msg){
                        document.write( unescape("<!-- an error occured -->"));
                   }
                   
              });
}

