if (document.all) {
   document.styleSheets["buttonstyle"].addRule(".dhtmlbutton","background-color:buttonface;border: 1px solid buttonface;padding:1px;cursor:hand;")
   document.styleSheets["buttonstyle"].addRule(".w_dhtmlbutton","background-color:white;border: 1px solid white;padding:1px;cursor:hand;")
   document.styleSheets["buttonstyle"].addRule(".a_dhtmlbutton","background-color:#DAFFCA;border: 1px solid #DAFFCA;padding:1px;cursor:hand;")
   document.styleSheets["buttonstyle"].addRule(".s_dhtmlbutton","background-color:#CCFFCC;border: 1px solid #DAFFCA;padding:1px;cursor:hand;")
}

function upeffect(cur,c_name){
 if (document.all)  {
   if (c_name) {
     cur.className=c_name;
   }
   else
     cur.className='overbutton';
  }
  return true;
}

function downeffect(cur,c_name){
 if (document.all)  {
   if (c_name)
     cur.className=c_name;
   else
     cur.className='downbutton';
 }
  return true;
}

function normaleffect(cur,c_name){
 if (document.all)  {
   if (c_name)
     cur.className=c_name;
   else
     cur.className='dhtmlbutton';
 }
  return true;
}

