<!--
var K3ActivePage


function ShowPage(page_url)
{
open ('index.htm?'+escape(page_url), '_self');
//top.location.href = 'index.htm?' + escape(page_url);
}

function ShowPage1(page_src)
{
alert(page_src);
document.location.href='index.htm';
alert(page_src);
}

function ShowPage2(page_src)
{
//document.K3ActivePage='software.htm';
document.location.href='index.htm?content='+page_src;
}

function ShowPage3(page_src)
{
var win;
//window.location.href='index.htm#'+page_src;
var windowRef = open ('index.htm#'+page_src, '_self');
//win=window.open('index.htm#'+page_src, "_self");
//alert(windowRef.location);
windowRef.SetVar('XXX');
//win.myobject.K3prop='K3K3K3';
//alert(win.myobject.K3prop);
//win.K3Src=page_src;
//win.frames[2].location.href=page_src;
//alert(win.K3Src);
}


function TestFrame()
{
var page_url,
    n;

if (top == window) {
  page_url = window.location.href;
  n = page_url.lastIndexOf('\\');
  if (n<0) {
    n = page_url.lastIndexOf('/');
    }
  page_url = page_url.substr(n+1);
  open ('index.htm?'+escape(page_url), '_self');
  }
}

function TestFrameSubDir(subdir)
{
var page_url, index_url,
    i, n;

if (top == window) {
  page_url = window.location.href;
  n = page_url.lastIndexOf('\\');
  if (n<0) {
    n = page_url.lastIndexOf('/');
    }
  page_url = subdir+'/'+page_url.substr(n+1);

//  alert('index.htm?'+escape(page_url), '_self');
  open ('../index.htm?'+escape(page_url), '_self');
  }
}

function TestFrameEx(page_url)
{
//if (window.name != 'mainwin') {
if (top == window) {
  if (page_url=='') {
    top.location.href = 'index.htm';
    }
  else {
    ShowPage(page_url);
    }
  }
return(true);
}



function GetRequiredPage()
{
var url = location.search ?
          unescape(location.search.substring(1)) :
          'main.htm';

return(url);
}


function GetRequiredPage2()
{
var url, n,
    cont='?';

url=document.location.href;
n=url.indexOf(cont);
if (n>0) {
  Result=url.substr(n+cont.length);
//  document.location.href
  }
else {
  Result='main.htm';
  }
return(Result);
}

function getmail(account, domain, realname)
{
  document.write("<a href='mailto:" + account + "&#64;" + domain + "'>" +
realname + "</a>");
}


function ShowPage3(page_src)
{
alert(page_src);

document.write('<frameset framespacing="0" border="false" frameborder="0" cols="135,*"> ');
document.write('<frameset framespacing="0" border="false" frameborder="0" rows="320,*"> ');
document.write('  <frame name="menu" target="menu" src="menu.htm" scrolling="no" noresize ');
document.write('marginwidth="0" ');
document.write('    marginheight="0"> ');
document.write('  <frame name="counter" target="counter" src="counter.htm" scrolling="no" ');
document.write('noresize marginwidth="0" marginheight="0"> ');
document.write('</frameset> ');
document.write('    <frame name="mainwin" target="mainwin" src="software.htm" scrolling="auto" ');
document.write('noresize marginwidth="0" ');
document.write('    marginheight="0"> ');
document.write('  <noframes> ');
document.write('  <body> ');
document.write('  <p>Your web browser does not support frames.</p> ');
document.write('  </body> ');
document.write('  </noframes> ');
document.write('</frameset> ');
}

function WriteFooter(SubDir)
{
document.write('        <table border="0" width="100%">');
document.write('            <tr>');
document.write('                <td align="center" colspan="2"><font');
document.write('                color="#FFFFFF">I am a member of</font> </td>');
document.write('            </tr>');
document.write('            <tr>');
document.write('                <td align="right" valign="top" width="50%"><table');
document.write('                border="0">');
document.write('                    <tr>');
document.write('                        <td align="center" valign="top"><a');
document.write('                        href="http://www.astrabio.demon.co.uk/QCUIAG/"><img');
if (SubDir=='') {
  document.write('                        src="Images/qcuiaglogo1.gif" border="0"');
  }
else {
  document.write('                        src="'+SubDir+'Images/qcuiaglogo1.gif" border="0"');
  }
document.write('                        width="180" height="80"></a><br>');
document.write('                        <font color="#FF0000"><strong>Q</strong></font><font');
document.write('                        color="#0000FF"><strong>uick</strong></font><font');
document.write('                        color="#FF0000"><strong>C</strong></font><font');
document.write('                        color="#0000FF"><strong>am and </strong></font><font');
document.write('                        color="#FF0000"><strong>U</strong></font><font');
document.write('                        color="#0000FF"><strong>nconventional<br>');
document.write('                        </strong></font><font color="#FF0000"><strong>I</strong></font><font');
document.write('                        color="#0000FF"><strong>maging </strong></font><font');
document.write('                        color="#FF0000"><strong>A</strong></font><font');
document.write('                        color="#0000FF"><strong>stronomy </strong></font><font');
document.write('                        color="#FF0000"><strong>G</strong></font><font');
document.write('                        color="#0000FF"><strong>roup</strong></font></td>');
document.write('                    </tr>');
document.write('                </table>');
document.write('                </td>');
document.write('                <td valign="top" width="50%"><table border="0">');
document.write('                    <tr>');
document.write('                        <td><a href="http://astronomy.xrs.net"');
document.write('                        target="ACA"><img');
if (SubDir=='') {
  document.write('                        src="Images/acaban_s.jpg" border="0"');
  }
else {
  document.write('                        src="'+SubDir+'Images/acaban_s.jpg" border="0"');
  }
document.write('                        width="180" height="75"></a></td>');
document.write('                    </tr>');
document.write('                </table>');
document.write('                </td>')
document.write('            </tr>');
document.write('        </table>');
document.write('        <p align="center">&nbsp;</p>');
}

//-->
