Thanks bionid. The script is linked to the index in the <head> by an external script file "main.js". I'll include more of the script here so you've got a clearer picture of what's happening...of course, it may be as you said that the <BODY> isn't available, though it was previously and it worked.
function makeitem(lookno)
{
if(parent.jumpq==1)
{
switch(lookno)
{
case "No. Only":
parent.document.getElementById('look').style.display='none';alert("Enter design no., or Click another menu option."); jumpdesno=0; parent.djump.value="No. Only"; parent.jumpq=0;
break;
case "":
parent.document.getElementById('look').style.display='none';alert("Enter design no., or Click another menu option."); jumpdesno=0; parent.djump.value="No. Only"; parent.jumpq=0;
break;
case parent.djump.value:
if(lookno<0){parent.document.getElementById('look').style.display='none'; alert("Enter a number between '0' and "+nodes+", or Click another menu option."); jumpdesno=0; parent.djump.value="No. Only"; parent.jumpq=0;}
if(lookno>nodes){parent.document.getElementById('look').style.display='none'; alert("Enter a number between '0' and "+nodes+", or Click another menu option."); jumpdesno=0; parent.djump.value="No. Only"; parent.jumpq=0;}
break;
case parent.mjump.value:
if(lookno<0){parent.document.getElementById('look').style.display='none'; alert("Enter a number between '0' and "+nomonos+", or Click another menu option."); jumpdesno=0; parent.mjump.value="No. Only"; parent.jumpq=0;}
if(lookno>nomonos){parent.document.getElementById('look').style.display='none'; alert("Enter a number between '0' and "+nomonos+", or Click another menu option."); jumpdesno=0; parent.mjump.value="No. Only"; parent.jumpq=0;}
break;
default: break;
}
jumpdesno=lookno; parent.djump.value="No. Only"; parent.mjump.value="No. Only"; parent.jumpq=0;
}
else{lookpicno="pic"+lookno; jumpdesno=top.document.passform[lookpicno].value; parent.jumpq=0;}
switch(parent.imgtype)
{
case "design":
lookpath="items/designs/des"+jumpdesno+".js";
lookpic.src="pics/designs/design"+jumpdesno+".gif";
break;
case "mono":
lookpath="items/monos/mono"+jumpdesno+".js";
lookpic.src="pics/monos/mono"+jumpdesno+".gif";
monodiv.style.display="block";
break;
default: break
}
e=window.document.createElement('script');
e.setAttribute('src',lookpath);
window.document.body.appendChild(e);
clr1.innerHTML=chng1[0];
clr2.innerHTML=chng2[0];
clr3.innerHTML=chng3[0];
clr4.innerHTML=chng4[0];
clr5.innerHTML=chng5[0];
clr6.innerHTML=chng6[0];
clr7.innerHTML=chng7[0];
clr8.innerHTML=chng8[0];
clr9.innerHTML=chng9[0];
clr10.innerHTML=chng10[0];
clr11.innerHTML=chng11[0];
clr12.innerHTML=chng12[0];
clr13.innerHTML=chng13[0];
desnum=des[0];
desno.innerHTML=des[0];
size3.innerHTML=wxh3[0];size4.innerHTML=wxh4[0];size5.innerHTML=wxh5[0];size6.innerHTML=wxh6[0];
}