 
pointgraphic = new Image;

function showGroup(point_number){

if (point_number != 1) hideGroup(1);
if (point_number != 2) hideGroup(2);
if (point_number != 3) hideGroup(3);
if (point_number != 4) hideGroup(4);
if (point_number != 5) hideGroup(5);

document.styleSheets['points'].addRule('.xg'+ point_number,'display: block');
 document.styleSheets['points'].addRule('.rg'+ point_number,'display: none');
} //end funtion show group


function hideGroup(point_number){

document.styleSheets['points'].addRule('.xg'+ point_number,'display: none');
 document.styleSheets['points'].addRule('.rg'+ point_number,'display: block');
} //end funtion hide group


function showPoint(point_number){

hideAll(10);

pointgraphic.src = "/orders/pointgraphic.asp?point=" + point_number +"&t=" + Date();
if (document.getElementById('p'+ point_number))  document.getElementById('p'+ point_number).style.display = 'block';
if (document.getElementById('h'+ point_number))  document.getElementById('h'+ point_number).style.display = 'none';

} //end funtion show point



function hidePoint(point_number){

if (document.getElementById('p'+ point_number)) document.getElementById('p'+ point_number).style.display = 'none';
if (document.getElementById('h'+ point_number)) document.getElementById('h'+ point_number).style.display = 'block';

} //end funtion hide point


function showAll(maxpoints){

for(i=0; i<= maxpoints; i++){

if (document.getElementById('p'+ i)) if (document.getElementById('p'+ i).style.display != 'block') document.getElementById('p'+ i).style.display = 'block';
if (document.getElementById('h'+ i)) if (document.getElementById('h'+ i).style.display == 'block') document.getElementById('h'+ i).style.display = 'none';
}
} //end funtion show all



function hideAll(maxpoints){

for(i=0; i<= maxpoints; i++){
if (document.getElementById('p'+ i)) if (document.getElementById('p'+ i).style.display == 'block') document.getElementById('p'+ i).style.display = 'none';
if (document.getElementById('h'+ i)) if (document.getElementById('h'+ i).style.display != 'block') document.getElementById('h'+ i).style.display = 'block';
}
} //end funtion hide all
  














