/*
* Copyright 2008 punkt .netServices
*
* Licensed under the punkt .netServices License, Version 2.3 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.punkt.at/licenses/LICENSE-2.3
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


/*
* @author turnguard
*/

function PaginatorConfig(){
    this.class_IE = "ConXSearch.core.Util.PaginatorConfig";
    this.totalHits = 436;
    this.startAt = 0;
    this.hitsPerPage = 20;
    this.javaScript;
    this.language="en";
    this.linktype="javascript";
    this.SetHitsPerPage = function(HitsPerPage){ this.hitsPerPage = HitsPerPage;} 
    this.SetJavaScript = function(JavaScript){
        this.javaScript = JavaScript;
    }
    this.SetLanguage = function(Language){ this.language=Language;}
    this.SetLinkType = function(linktype){ this.linktype=linktype;}
}

function PaginatorJavaScript(){
    this.class_IE = "ConXSearch.core.Util.PaginatorJavaScript";
    this.javaScriptFunction = "";
    this.javaScriptParams = new Array();
    this.SetJavaScriptFunction = function(JavaScriptFunction){
        this.javaScriptFunction = JavaScriptFunction;
    }
    this.AddJavaScriptParams = function(JavaScriptParams){
        this.javaScriptParams.push(JavaScriptParams);
    }
}

function PaginatorJavaScriptParams(){
    this.JavaScriptParams;
    this.SetParam = function(Param){
        this.JavaScriptParams = Param;
    }
    this.AddParam = function(Value, Key){ 
        this.JavaScriptParams[Value] = Key;
        alert(Key + " " + Value + " " + this.JavaScriptParams.toJSONString());
    }
}

