';
return this.html;
};
// --- Two funcitons used to get the position of a layer in the window ---
function getExplorerLeft(element){
if(element.offsetParent.offsetLeft>0){
return element.offsetLeft+getExplorerLeft(element.offsetParent);
}else{
return element.offsetLeft;
}
};
function getExplorerTop(element){
if(element.offsetParent.offsetTop>0){
return element.offsetTop+getExplorerTop(element.offsetParent);
}else{
return element.offsetTop;
}
};
ExpandingCategoriesObj.prototype.positionCategory = function(){
if (navigator.appName.indexOf("Netscape") != -1) {
layers=eval(this.document+'.layers');
for(var i=0;i=0)?('['+nr+']'):('');
// --- Generate html for clickable picture ---
html = ''+
''
+'';
// --- Check wether there is pictures available for this graphics element ---
if(this.pictureChecked&&this.pictureNotChecked) {return html} else {return ''}
};
Graphics.prototype.click = function(value){
f = eval(this.parent.docPath+'document.forms');
for(var i=0;i=0)?('['+position+']'):('');
eval(this.Obj+arrayNR+'.click(\''+field[0]+'\')');
this.field = form.elements[this.parent.position].value;
var field = new Array();
field = this.field.split('~');
}
if(field.contains(value)){
// --- Remove the value from the form field ---
field = field.remove(value);
this.checked = this.checked.remove(value);
}else{
// --- Add the value to the form field ---
if(field[0]==""){
field[0] = value;
this.checked[0] = value;
}else{
field[field.length] = value;
this.checked[this.checked.length] = value;
}
}
this.field = field.join('~');
form.elements[this.parent.position].value = this.field;
if(this.parent.type == "ExpandingCategories"){
// --- If the field type is expanding categories set the layers body ---
setChildBody(this.parent.main,value);
}else{
var picture = this.checked.contains(value)?this.pictureChecked:this.pictureNotChecked;
images = eval(this.parent.docPath+'document.images');
for(var i =0;i