function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}



if (top.frames.length > 0)
{
 top.location=self.location;
}

function opendisclaimerwindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-480)/2
	var settings='width=591,height=373,top='+wint+',left='+winl+',scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function openlegalnoticewindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-480)/2
	var settings='width=458,height=330,top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function openprivacywindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-480)/2
	var settings='width=1014,height=780,top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function opensecuritywindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-480)/2
	var settings='width=862,height=720,top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function opentermswindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-480)/2
	var settings='width=1014,height=720,top='+wint+',left='+winl+',scrollbars=yes,toolbar=yes,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function openlicensewindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-480)/2
	var settings='width=810,height=600,top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function openharrissoftwindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-280)/2
	var settings='width=350,height=260,top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function openhelpwindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-280)/2
	var settings='width=350,height=220,top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}


function openrefundwindow(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-280)/2
	var settings='width=500,height=420,top='+wint+',left='+winl+',scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function openlinks(pg)
{
	var winl = (screen.width-350)/2
	var wint = (screen.height-280)/2
	var settings='width=500,height=420,top='+wint+',left='+winl+',scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes'
	win=window.open(pg,'blah',settings)
}

function openharrissoftsite()
{
	win=window.open('http://www.harrissoft.com');
}

function openstaylegal()
{
	win=window.open('http://www.stay-legal.com/');
}

function openpaypal()
{
	win=window.open('http://www.paypal.co.uk/');
}

function opendotnetframework2()
{
	win=window.open('dotnet2/dotnetfx.exe');
}

function opencompactframework2()
{
	win=window.open('dotnet2/NETCFv2.wm.armv4i.cab');
}

function searchsite()
{
    //Only perform the search if we've got some text !
    if(searchtext.value != "")
    {
        window.location.href = "sitesearch.php?searchstring=" + escape(searchtext.value);
    }
}

