// This file was generated by ScriptServer.class.php at 2007-09-17 17:36:01
// Source file's mtime was 2007-09-17 17:33:09

function InputWatch(input, callBack, object, interval) {
if (interval==undefined)
interval = 200;
 this.input = input;
 this.callBack = callBack;
 this.object = object;
 this.lastVal = this.input.value;
var cbInternal = function() {
var val = this.input.value;
if (val != this.lastVal) {
this.lastVal = val;
this.callBack.call(this.object, val);
}
}
var cbInternalWrapper = function() {
cbInternal.call(arguments.callee.object);
}
cbInternalWrapper.object = this;
window.setInterval(cbInternalWrapper, interval);
}
function SearchEngine(searchStr) {
SearchEngine.prototype.escapeRegExp = function(text) {
text = text.replace(/\\/g, '\\\\');
text = text.replace(/\^/g, '\\^');
text = text.replace(/\$/g, '\\$');
text = text.replace(/\./g, '\\.');
text = text.replace(/\*/g, '\\*');
text = text.replace(/\+/g, '\\+');
text = text.replace(/\?/g, '\\?');
text = text.replace(/\=/g, '\\=');
text = text.replace(/\!/g, '\\!');
text = text.replace(/\:/g, '\\:');
text = text.replace(/\|/g, '\\|');
text = text.replace(/\//g, '\\/');
text = text.replace(/\(/g, '\\(');
text = text.replace(/\)/g, '\\)');
text = text.replace(/\[/g, '\\[');
text = text.replace(/\]/g, '\\]');
text = text.replace(/\{/g, '\\{');
text = text.replace(/\}/g, '\\}');
return text;
}
SearchEngine.prototype.escapePunctation = function(text) {
text = text.replace(/[aá]/g,  '[aá]');
text = text.replace(/[cč]/g,  '[cč]');
text = text.replace(/[dď]/g,  '[dď]');
text = text.replace(/[eéě]/g, '[eéě]');
text = text.replace(/[ií]/g,  '[ií]');
text = text.replace(/[nň]/g,  '[nň]');
text = text.replace(/[oó]/g,  '[oó]');
text = text.replace(/[rř]/g,  '[rř]');
text = text.replace(/[sš]/g,  '[sš]');
text = text.replace(/[tť]/g,  '[tť]');
text = text.replace(/[uúů]/g, '[uúů]');
text = text.replace(/[yý]/g,  '[yý]');
text = text.replace(/[zž]/g,  '[zž]');
return text;
}
 this.empty = (searchStr==undefined || searchStr.length==0);
if (!this.empty) {
var pattern = searchStr;
pattern = this.escapeRegExp(pattern);       // Escape special chars
pattern = this.escapePunctation(pattern);   // Escape punctation
pattern = '('+pattern+')';                  // Mark re subgroup (for substitutions)
 this.re = new RegExp(pattern, 'gi');
}
SearchEngine.prototype.isMatch = function(text) {
return !this.empty && (-1!= text.search(this.re));
}
}
function SearchEngineChain(searchStr) {
 this.list = new Array();
var decomp = searchStr.split(/ +/);
for (var i=0; i<decomp.length; i++) {
var word = decomp[i];
if (0!=word.length)
this.list.push(new SearchEngine(word));
}
}
SearchEngineChain.prototype.isMatch = function(text) {
if (0==this.list.length)
return false;
for (var i=0; i<this.list.length; i++)
if (!this.list[i].isMatch(text))
return false;
return true;
}
function ChildElementsEnumerator(rootNode, tagName) {
 this.nodeList = rootNode.childNodes;
 this.tagName = tagName.toLowerCase();
 this.nodeCount = this.nodeList.length;
ChildElementsEnumerator.prototype.reset = function() {
this.current = 0;
}
this.reset();
ChildElementsEnumerator.prototype.next = function() {
for (; this.current < this.nodeCount; this.current++) {
var node = this.nodeList[this.current];
if (
node.nodeType == 1 &&
node.tagName.toLowerCase() == this.tagName)
break;
}
if (this.current < this.nodeCount)
return this.nodeList[this.current++];
else
return null;
}
}
function createXmlHttp() {
var xmlHttp = null;
try {
xmlHttp = new XMLHttpRequest();
}
catch(e) {
try {
xmlHttp = new ActiveXObject('Microsoft.XMLHttp');
}
catch(e) { }
}
return xmlHttp;
}
function patchInnerText() {
if(typeof(HTMLElement) == "undefined" || typeof(document.documentElement.innerText) == "string")
return;
HTMLElement.prototype.__defineSetter__("innerText", function(text) {
while (this.hasChildNodes())
this.removeChild(this.firstChild);
this.appendChild(document.createTextNode(text));
});
HTMLElement.prototype.__defineGetter__("innerText", function() {
return this.textContent;
});
}
function dump(object) {
if (null==object)
return;
log = document.getElementById('jsLog');
if (null==log)
return;
var h1 = document.createElement('h1');
h1.innerHTML = 'Dump';
log.appendChild(h1);
var text = new String;
for(tmp in object)
text += '<b>' + tmp + '</b>: ' + object[tmp] + '<br/>\n';
var p = document.createElement('p');
p.innerHTML = text;
log.appendChild(p);
}
function PropStorage(obj, propList) {
 this.map = new Object;
for (var i=0; i<propList.length; i++) {
var property = propList[i];
this.map[property] = obj[property];
}
}
PropStorage.prototype.restore = function(obj) {
for (var prop in this.map)
obj[prop] = this.map[prop];
}

// File generated in 0.022 s
