any thoughts of why this wouldnt be working in a php page?
Code:
// JavaScript Document
function contractall(){
if (document.getElementById){
var inc=0
while (document.getElementById("hidden"+inc)){
document.getElementById("hidden"+inc).style.display="none"
inc++
}
}
}
function expandone(){
if (document.getElementById){
var selectedItem=document.priceform.priceoption.selectedIndex
contractall()
document.getElementById("hidden"+selectedItem).style.display="block"
}
}
if (window.addEventListener)
window.addEventListener("load", expandone, false)
else if (window.attachEvent)
window.attachEvent("onload", expandone)
it works with a html page but not in my php. am i missing something here?