1 function Buhin(number){
\r
3 function push(name, data){ // void
\r
4 var temp = new Object();
\r
7 this.array.push(temp);
\r
9 Buhin.prototype.push = push;
\r
11 function set(name, data){ // void
\r
12 var temp = new Object();
\r
15 for(var i = 0; i < this.array.length; i++){
\r
16 if(this.array[i].name == name){
\r
17 this.array.splice(i, 1);
\r
20 this.array.push(temp);
\r
22 Buhin.prototype.set = set;
\r
24 function search(name){ // string
\r
25 for(var i = 0; i < this.array.length; i++){
\r
26 if(this.array[i].name == name){
\r
27 return this.array[i].data;
\r
30 return ""; // no data
\r
32 Buhin.prototype.search = search;
\r
35 this.array = new Array();
\r