/*General JS*/
function show(image,title,width,height){
show_pic = window.open("","actions","status=no,toolbar=no,scrollbars=no,resizable=no,width="+width+",height="+height+"");
  show_pic.document.open();
  show_pic.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
  show_pic.document.write("<html>\n\t<head><title>"+title+"<\/title><\/head>\n");
  show_pic.document.write("<body style=\"margin:0px;\">\n");
  show_pic.document.write("<img style=\"cursor:hand\" src=\""+image+"\" onClick=\"window.close();\" title=\"Click to close\" alt=\""+title+"\">\n");
  show_pic.document.write("<\/body><\/html>\n");
  show_pic.document.close();
}
function dsp(id){
  var vidi=document.getElementById('type'+ id);
  if(vidi.style.display == "block"){
    vidi.style.display = "none";
    vidi.style.visibility = "hidden";
  }else{
    vidi.style.display = "block";
    vidi.style.visibility = "visible";
  }
}
function timer(){
  min++
  if(min>=60) hour++;
  min=min%60; hour=hour%24;
  if(min<10) min='0'+min;
  if(hour<10) hour='0'+hour;
  document.getElementById('minutes1').innerHTML=document.getElementById('minutes2').innerHTML=min;//+' '+ampm;
  document.getElementById('hours1').innerHTML=document.getElementById('hours2').innerHTML=hour;
}
function blink(){
  elem=document.getElementById('delimiter');
  elem2=document.getElementById('delimiter2');
  if(elem.style.visibility=='visible'){
    elem.style.visibility='hidden';
    elem2.style.visibility='hidden';
  }
  else{
    elem.style.visibility='visible';
    elem2.style.visibility='visible';
  }
}