
function chg_bgcolor(obj, state)
{
  obj.style.backgroundColor= (state==1)? "#F5B424": "transparent";
}

function chg_color(obj, state)
{
  obj.style.color= (state==1)? "#240F6A": "#FFBE30";
}


function win_open2(str)
{
  if (screen.width>1024) { w_width= 1280; w_height= 1024; }
  else if (screen.width>800) { w_width= 1024; w_height= 768; }
  else if (screen.width>640) { w_width= 800; w_height= 600; }
  else { w_width= 640; w_height= 480; }

  add_w = window.open(str,'ch','top='+(screen.height-w_height)/2+',left='+(screen.width-w_width)/2+',width='+w_width+',height='+w_height+',scrollbars=yes,status=no,resizable=no');
  add_w.focus(); if (add_w.opener == null) { add_w.opener = window; }
}
