function WriteNewsTicker()
{
	if ( window.navigator.appName == 'Microsoft Internet Explorer' )
	{
		document.write('<table border=0 bgcolor=teal cellspacing=1 cellpadding=0>');
		document.write('<tr>');
		document.write('<td valign=center>');
		document.write('<table width=100% border=0 bgcolor=#66CCCC cellspacing=0 cellpadding=0>');
		document.write('<tr>');
		document.write('<td valign=center>');
		document.write('<img src=images/marquee.gif>');
		document.write('</td>');
		document.write('<td valign=middle width=10>');
		document.write('</td>');
		document.write('<td valign=middle width=300>');
		document.write('<marquee behavior=scroll scrollamount=10 scrolldelay=200>');
		document.write('<img src=/alta/images/blackarrow.gif align=middle>');
		document.write('<a class=HomeNewsTicker href=http://www.alta-systems.com/>Go to the Alta-Systems homepage.</a>');
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('<img src=/alta/images/blackarrow.gif align=middle>');
		document.write('<a class=HomeNewsTicker href=http://www.alta-systems.co.uk/products.htm>Check out other Alta-Systems products.</a>');
		document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
		document.write('</marquee>');
		document.write('</td>');
		document.write('<td valign=middle width=10>');
		document.write('</td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('</td>');
		document.write('</tr>');
		document.write('</table>');
	}
}


function checkPreRegistration()
{

	var plugin;

	// This only works for IE
	if ( navigator.appName != "Netscape" )
	{
		try {
			plugin = new ActiveXObject("AltaClientId.clsMain");
        
        		if (plugin) {
        			// client has the object so set the pre registration flag
        			document.forms["userform"].prereg.value = "yes";
        		}
             	}
             	catch (e)
             	{
        		// Something wrong so do nothing - system will do other PC registration checks
        		;	
		}
	}
}
