		function clearthis()
		{
			document.form.Textarea1.value = "";
		}

		function jtest2(myform)
		{
			var emailcheck = "";

			emailcheck = myform.email.value;
			emailnotes = myform.Textarea1.value;

			if ((emailcheck == "") || (emailnotes == ""))
			{
				myform.errorNote.value = emailnotes;
				myform.Textarea1.focus();
				if(myform.lang.value == "en")
					alert("Please enter an email address and error description");
				else if(myform.lang.value == "fr")
					alert("Veuillez entrer un courriel et description d'erreur");
					
				return false;
			}
			else
			{
				myform.confirm.value = 1;
				return true;
			}


		}
		
		function getInternetExplorerVersion()
        {
          var rv = -1; // Return value assumes failure.
          if (navigator.appName == 'Microsoft Internet Explorer')
          {
            var ua = navigator.userAgent;
            var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
            if (re.exec(ua) != null)
              rv = parseFloat( RegExp.$1 );
          }
          return rv;
        }
               
        
		function jtest1(myform)
		{
			if (!navigator.javaEnabled())
			{
				myform.jtest.value = 2;
				myform.javasend.value = "Disabled";
			}
			else
			{
				myform.jtest.value = 1;
				myform.javasend.value = "Enabled";
			}

			if (document.all)
			{
				var version=/MSIE \d+.\d+/
			}	
			if (!document.all)
			{
				myform.browser.value = (navigator.appName+" "+navigator.userAgent);
			}
			else
			{
			    //var thisVer = getInternetExplorerVersion();
			    myform.browser.value = (navigator.appName+" "+navigator.appVersion.match(version));
			}


            if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
			if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
			if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
			if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
			
			myform.OS.value = (OSName);

			myform.resX.value = screen.width;
			myform.resY.value = screen.height;
						
			if (navigator.appName == 'Netscape')
			{
			    var plugin = (navigator.mimeTypes && 
                        navigator.mimeTypes["application/x-shockwave-flash"] &&
                        navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) ?
                        navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
                
                if (plugin&&plugin.description) 
                {
                    myform.FlashVersion.value = "Flash version: " + parseInt(plugin.description.substring(plugin.description.indexOf(".")-1));
                }
                else
                {
                    myform.FlashVersion.value = plugin;
                } 
            }
			else
			{
			    for(i = 5; i < 10; i++)
			    {
			        var ax = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + i + "');");
			        if(ax)
			        {
			            myform.FlashVersion.value = ax.GetVariable('$version'); 
			            break;
			        }
			    }
            }       
    		return true;
		}

		function openinstruction(url)
		{
			window.open(url, 'popupemail_check', 'width=700,height=750px,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes');
		}
		function openpopup(url)
		{
			window.open(url, 'popup', 'width=240,height=130,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes');
		}
		function openredirect(url)
		{
			window.open(url, 'popupemail_check', 'width=650,height=250px,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes');
		}
		function openscripting(url)
		{
			window.open(url, 'popupemail_check', 'width=650,height=330px,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes');
		}
		function openpopupinstruc(url)
		{
			window.open(url, 'popupemail_check', 'width=800,height=600px,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes');
		}
		function openclipboard(url)
		{
			window.open(url, 'popupemail_check', 'width=750,height=600,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=yes');
		}