function UrlOpen (urlLink)
{
   var new_url=urlLink;
   if (  (new_url != "")  &&  (new_url != null)  )
      window.location=new_url;
      window.focus;
}

function ResetRadio(radio_group)
{   
   var i;
   for(i=0;i<radio_group.length; i++)
   {
   	if(radio_group[i].defaultChecked)
   	{
   		radio_group[i].checked = true;
   		break;
   	}
   }
}

// cross-browser get element
function GetElement( id )
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}

function toggleBox(id, iState) // 1 visible, 0 hidden
{
	var obj = document.getElementById(id).style;

	obj.display = (iState ? "" : "none");
    obj.position = (iState ? "static" : "absolute");
}

function Rollover(id, src) {
	document.getElementById(id).src = src;
	}

function ShowSQLToggle(showSQLStrId, sqlStrId) {
	var sqlStrObj = document.getElementById(sqlStrId);

	toggleBox(sqlStrId, (sqlStrObj.style.display == 'none'));

	document.getElementById(showSQLStrId).innerHTML = ((sqlStrObj.style.display == 'none') ? 'Show SQL' : 'Hide SQL');
}
