var didit = 0;
var ie4=document.all;
var ns6=document.getElementById;
function noLamp(id){
if (ie4||ns6){
eval("contentobj=document.getElementById? document.getElementById('lampedata_'+id): document.all.lampedata_+id");
contentobj.innerHTML= "";
}
}
function showLamp(pname,sname,status,cdate,edate,remarks,id)
{
text = "" + sname + " hos " + pname + ":";
if (status != ""){
//text += "
"+status+"";
}
if (cdate != ""){
text += "
Fejlmeldt: ";
text += ""+cdate+".";
}
if (edate != ""){
text += "
Forventet rettet: ";
text += ""+edate+".";
}
if (remarks != ""){
text += "
Bemærkninger: ";
text += ""+remarks+".";
}
if (ie4||ns6){
eval("contentobj=document.getElementById? document.getElementById('lampedata_'+id): document.all.lampedata");
contentobj.innerHTML= text;
}
}
function showPlanedDisturbance(pname, sname, sdate, edate, remarks, id) {
text = "" + sname + " hos " + pname + ":";
text += "
Planlagt driftsforstyrelse";
if (sdate != ""){
text += "
Planlagt start: ";
text += ""+sdate+".";
}
if (edate != ""){
text += "
Planlagt slut: ";
text += ""+edate+".";
}
if (remarks != ""){
text += "
Bemærkninger: ";
text += ""+remarks+".";
}
if (ie4||ns6){
eval("contentobj=document.getElementById? document.getElementById('lampedata_'+id): document.all.lampedata");
contentobj.innerHTML= text;
}
}
function refreshpage(slideshowspeed) {
if (slideshowspeed > 0) {
didit = 1;
window.location.reload(true) ;
}
}