function openChild(docID){
window.open(dbPath + "/$defaultView/" + docID + "?OpenDocument&id=" + Math.round(200*Math.random()),app,"resizable,scrollbars,left=50,width=820")
}
function openChildDoc(docID){
window.open(dbPath+ "/" +docID,app,"resizable,scrollbars,left=30,width=920")
};
function wrtVwHdr(){
document.writeln('
| ');
}
var g_rowNum = 1;
function wrtVwRw(){
document.writeln(' |
|---|
| ');
g_rowNum++;
}
var g_vwHdrTop = 0;
function initVw(){
self.focus();
self.onscroll=doFix4CatScroll;
var e=document.getElementById('vwHdr');
if(e)g_vwHdrTop=e.offsetTop;
}
function doQSrch(ev){
if(ev.srcElement.tagName.toLowerCase()=="input")return true;
var charCode=document.all?ev.keyCode:ev.which;
if(charCode==13)return true;//don't show/hide on enter
var kp=String.fromCharCode(charCode);
var e=document.getElementById('quikSrch');
var ei=document.getElementById('qSrchInput');
if(e.style.display=="block"){
ei.value+=kp;
}else{
e.runtimeStyle.pixelTop=document.body.scrollTop+25;
e.style.display="block";
ei.focus();
}
return true;
}
function qs_doScroll(){
var e=document.getElementById('quikSrch');
(e.style.display=="block")
{e.runtimeStyle.pixelTop=document.body.scrollTop+25}
}
function qs_check4Enter(ev,eNm){
var charCode=document.all?ev.keyCode:ev.which;
if(charCode==13){document.getElementById(eNm).click();return false}
else{return true}
}
function doFix4CatScroll(){
self.onscroll=doVwScroll;
var e=document.getElementById('vwHdr');
if(e){
var fixScroll=0-e.offsetHeight;
self.scrollBy(0,fixScroll);
}
}
function doVwScroll(){
var e=document.getElementById('vwHdr');
if(e){
if(document.body.scrollTop>g_vwHdrTop){
e.runtimeStyle.pixelTop=document.body.scrollTop-g_vwHdrTop;
}else{
e.runtimeStyle.pixelTop=0;
}
}
qs_doScroll();
}
|