// JavaScript Document

function popup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// layer== id of div, action:true==show,false==hide, z==z index
function toTop(layer, action, z)
{
    var lref;
    
    if(document.getElementById && (lRef=document.getElementById(layer)))
    {
        lRef.style.visibility=action?'visible':'hidden';
        lRef.style.zIndex=z;
    }
}

function acceptterms() 
{
     if(document.getElementById('agree2').checked)
     {
     document.one.agree.value="Y";
     document.getElementById('submittd').innerHTML = "<input type='image' id='submit' name='submit' src='images/register_button.gif'>";
     } else {
     document.one.agree.value="";
     document.getElementById('submittd').innerHTML = "<a href=\"javascript:void(0);\"><img src='images/register_button.gif' border='0' onclick=\"alert('You must agree to the Terms of Use in order to proceed.');\" ></a>";
     }
}

function selbus(str) 
{
     document.getElementById('pt').innerHTML = document.getElementById(str).innerHTML;
}

