if (window.XMLHttpRequest) {
    xmlhttp_event = new XMLHttpRequest();
} else if (window.ActiveXObject) {
    xmlhttp_event = new ActiveXObject("Microsoft.XMLHTTP");
} else {
	xmlhttp_event = false;
}

////////////////////////////////////////////////////////////////////////////////
function shelf_visit_log (personId, personIdTarget)
// for shelf visit log
{
  	var url = '/InternalAPI/html/log/shelf-visit-log?personId='+personId+'&personIdTarget='+personIdTarget;
  	
  	xmlhttp_event.open('GET', url, true);
  	xmlhttp_event.send(null);  
  	
  	return;
} // shelf_visit_log

////////////////////////////////////////////////////////////////////////////////
function book_visit_log (personId, itemId) 
// for book visit log
{
  	var url = '/InternalAPI/html/log/book-visit-log?personId='+personId+'&itemId='+itemId;
  	
  	xmlhttp_event.open('GET', url, true);
  	xmlhttp_event.send(null);  
  	
  	return;
} // book_visit_log

////////////////////////////////////////////////////////////////////////////////
function wishlist_visit_log (personId, personIdTarget) 
// for wishlist visit log
{
  	var url = '/InternalAPI/html/log/wishlist-log?personId='+personId+'&personIdTarget='+personIdTarget;
  	
  	xmlhttp_event.open('GET', url, true);
  	xmlhttp_event.send(null);  
  	
  	return;
} // wishlist_visit_log

////////////////////////////////////////////////////////////////////////////////
function home_visit_log (personId) 
// for home visit log
{
  	var url = '/InternalAPI/html/log/home-visit-log?personId='+personId;
  	
  	xmlhttp_event.open('GET', url, true);
  	xmlhttp_event.send(null);  
  	
  	return;
} // home_visit_log

////////////////////////////////////////////////////////////////////////////////
function search_result_visit_log (personId) 
// for search result visit log
{
  	var url = '/InternalAPI/html/log/search-result-visit-log?personId='+personId;
  	
  	xmlhttp_event.open('GET', url, true);
  	xmlhttp_event.send(null);  
  	
  	return;
} // search_result_visit_log

////////////////////////////////////////////////////////////////////////////////
function forum_visit_log (personId, topicId) 
// for forum visit log
{
  	var url = '/InternalAPI/html/log/forum-visit-log?personId='+personId+'&topicId='+topicId;
  	
  	xmlhttp_event.open('GET', url, true);
  	xmlhttp_event.send(null);  
  	
  	return;
} // forum_visit_log