// JavaScript Document
function hidespan(pass) { 
var spans = document.getElementsByTagName('span'); 
for(i=0;i<spans.length;i++){ 
if(spans[i].id.match(pass)){//if they are 'see' spans 
if (document.getElementById) // DOM3 = IE5, NS6 
spans[i].style.display="none";// show/hide 
else 
if (document.layers) // Netscape 4 
document.layers[spans[i]].display = 'none'; 
else // IE 4 
document.all.hideshow.spans[i].display = 'none'; 
} 
} 
} 

function showspan(pass) { 
var spans = document.getElementsByTagName('span'); 
for(i=0;i<spans.length;i++){ 
if(spans[i].id.match(pass)){ 
if (document.getElementById) 
spans[i].style.display=""; 
else 
if (document.layers) // Netscape 4 
document.layers[spans[i]].display = ''; 
else // IE 4 
document.all.hideshow.spans[i].display = ''; 
} 
} 
} 

var blState=true;
function ToggleStyle(strElement,style,param1,param2) {
oObj=document.getElementById(strElement);
currStyle=eval("oObj.style."+style);
newStyle=(currStyle==param1)?param2:param1;
eval("oObj.style."+style+"='"+newStyle+"'");
}

// Nonfocus
function nonFocus()
{ for (a in document.links) document.links[a].onfocus = document.links[a].blur;
}
if (document.all)
{ document.onmousedown = nonFocus;
}

// Popup
function popup(url,name,ww,wh) { 
pl = parseInt((screen.width/2)-(ww/2)); 
pt = parseInt((screen.height/2)-(wh/2)); 
window.open(url,name,"width="+ww+",height="+wh+",left="+pl+",top="+pt+",scrollbars=yes"); 
}
