document.observe( "dom:loaded" , function() {
  
	var blInternal = false;
	
	Event.observe(document.body, 'click', function(event) {
		
		if ( ( Event.element(event).tagName == 'A' ) && ( Event.element(event).href.substring( 0, 24 ) == 'http://192.168.1.13:3001' ) ) {
			
			blInternal = true;
	  	
  		}

  		
	});
	
	
	window.onunload = survey;
	
	function survey() {
		
		if( blInternal == false ) {
	  	
			//alert('I see you are leaving the site');  
	  	
	  	}
	  
	}

});