 
function go(url) {
  xurl = url.replace(/^hggf:\|\|/, "http://");
  document.location = xurl;
}
 
function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

function movepic2(el_id,img_src) {
  var but = document.getElementById(el_id);
      but.src=img_src;
}



var err_flag = new Array;

function err_blink (el_id) {
  var element = document.getElementById(el_id);

  if (err_flag[el_id] == 1){
    element.style.color='white';
    err_flag[el_id] = 2;
  }else{
    element.style.color='red';
    err_flag[el_id] = 1;
  }
  setTimeout("err_blink('"+el_id+"')",500);
}

function highlight(id,hl){
  element=document.getElementById(id);
  if (element == null){
    element = document.all[id];
  }
  if (element == null){
    return;
  }
  if (hl){
	  if (element.style.filter != null) {
		element.style.filter = "Alpha(Opacity=100)";
	  } else {
		  element.style.opacity = 1;
	  }
  }else{
	  if (element.style.filter != null) {
		element.style.filter = "Alpha(Opacity=60)";
	  } else {
		element.style.opacity =0.6;
	  }
  }
}
