Some javascript cleanup.

This commit is contained in:
Michal Čihař
2003-06-05 09:26:49 +00:00
parent 88c398c43b
commit e129c5fe13
3 changed files with 48 additions and 40 deletions

View File

@@ -682,3 +682,22 @@ function insertValueQuery() {
function goToUrl(selObj, goToLocation){
eval("document.location.href = '" + goToLocation + "pos=" + selObj.options[selObj.selectedIndex].value + "'");
}
/**
* getElement
*/
function getElement(e,f){
if(document.layers){
f=(f)?f:self;
if(f.document.layers[e]) {
return f.document.layers[e];
}
for(W=0;i<f.document.layers.length;W++) {
return(getElement(e,fdocument.layers[W]));
}
}
if(document.all) {
return document.all[e];
}
return document.getElementById(e);
}