code: function _link_comp(str1, str2){
  
  	// Decompose links and arguments.
  	var tmp1 = str1.split('?');
  	var head1 = '';
  	var args1 = [];
  	if( ! tmp1[1] ){ // nothing before '?'
  	    args1 = tmp1[0].split('&');
  	}else{ // normal structure
  	    head1 = tmp1[0];
  	    args1 = tmp1[1].split('&');
  	}
  	var sorted_args1 = args1.sort();
  
  	var tmp2 = str2.split('?');
  	var head2 = '';
  	var args2 = [];
  	if( ! tmp2[1] ){ // nothing before '?'
  	    args2 = tmp2[0].split('&');
  	}else{ // normal structure
  	    head2 = tmp2[0];
  	    args2 = tmp2[1].split('&');
  	}
  	var sorted_args2 = args2.sort();
  
  	// var tmp2 = str2.split('?');
  	// var head2 = tmp2[0];
  	// var args2 = tmp2[1].split('&');
  	// var sorted_args2 = args2.sort();
  
  	// Compare heads and arguments.
  	var retval = false;
  	if( head1 == head2 &&
  	    _same_array(sorted_args1, sorted_args2) ){
  	    retval = true;
  	}
  	return retval;
      }
docs: TODO: This could probably be done better.