isDOM=(document.getElementById)?true:false
isOpera=(window.opera)?true:false
isOpera5=isOpera && isDOM
isOpera6=(isOpera5 && window.print)?true:false
isMSIE=isIE=(document.all && document.all.item && !isOpera)
isNC=navigator.appName=="Netscape"
isNC4=isNC && !isDOM
isNC6=isMozilla=isNC && isDOM

styleSwitch=".style"
layerPostfix="\"]"

if (isNC4)
{
   layerRef="document.layers[\""
   styleSwitch=""
}

if (isMSIE) layerRef="document.all[\""

if (isDOM)
{
   layerRef="document.getElementById(\""
   layerPostfix="\")"
}

// object functions
function objById(id,w)
{
   if (!w) w='';
   return eval(w+layerRef+id+layerPostfix);
}
function objByIdStyle(id,w)
{
   if (!w) w='';
   return eval(w+layerRef+id+layerPostfix+styleSwitch);
}