function updateSysCheck(){    
	
	    var pass = 'Pass';
	    var fail = 'fail';
		var error = false;
		
		

	    // javascript - obviously working if we got to here...
	    $('#javascript').html(pass);
		$('#trjavascript').css("display","none");
		
	    // cookies
	    var tmpcookie = new Date();
	    chkcookie = (tmpcookie.getTime() + '');
	    document.cookie = "chkcookie=" + chkcookie + "; path=/";
	    if (document.cookie.indexOf(chkcookie,0) < 0)
	    {
	        $('#cookies').html(fail);
			error = true;
	    }
	    else
	    {
	        $('#cookies').html(pass);
			$('#trCookies').css("display","none");
	    }

	    /* browser*/

		var browserstatusMSIE = "";
		var browserstatusFF = "";
		var browserstatusSAF = "";
		
	    if($.browser.msie && $.browser.version >= '7')
	    {
	        browserstatusMSIE = pass;
	    }
	    else if($.browser.mozilla && $.browser.version >= '1.9')// && navigator.platform.indexOf("Win")!=-1)
	    {
	        browserstatusFF = pass; //$('#browserstatusFF').html(pass);
	    }
	    else if($.browser.safari && $.browser.version >= '417.8' && $.browser.version != '530.17')
	    {
	        browserstatusSAF = pass; //$('#browserstatusSAF').html(pass);
	    }

	    else
	    {
	        // browser updates link
	        var download_link;
	        var browserErrorMsg;

	        if($.browser.msie )
	        {
	        	download_link = 'http://www.microsoft.com/windows/internet-explorer/default.aspx';
	        	browserErrorMsg = 'Please <a href="javascript:void(0);" onClick="window.open('+'\''+download_link+'\''+', \'Window1\', \'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=600,left = 860,top = 500\');">click here</a> to download the latest Internet Explorer';
	        }
	        else if($.browser.mozilla&&navigator.platform.indexOf("Win")==-1)
	        {
	        	download_link = 'http://www.getfirefox.com/';
	        	browserErrorMsg = "Unfortunately firefox for Mac is not supported as Adobe has not written a PDF viewing plugin for Firefox.<br />For the best experience with Maths Builder, we recommend you use Safari.";
			}
			else if ($.browser.mozilla)
			{
				download_link = 'http://www.getfirefox.com/';
	        	browserErrorMsg = $.browser.version;
			}
	        else
	        {
	        	download_link = 'http://www.apple.com/safari';
	        	browserErrorMsg = 'Please <a href="javascript:void(0);" onClick="window.open('+'\''+download_link+'\''+', \'Window1\', \'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=600,left = 860,top = 500\');">click here</a> to download the latest Safari';
	        }

	        $('#browserstatusMSIE').html(browserErrorMsg);	
			$('#browserstatusMSIE').css('color','#FF0000');

			$('#browserstatusFF').html(browserErrorMsg);
			$('#browserstatusFF').css('color','#FF0000');

			$('#browserstatusSAF').html(browserErrorMsg);
			$('#browserstatusSAF').css('color','#FF0000');

	    }
		/*if($('#browserstatus').html() == pass){
			$('#trbrowserstatus').css('display','none');
		}*/
		if($.browser.msie){
			if(browserstatusMSIE == pass){$('#trbrowserstatusMSIE').css('display','none');}else{error=true;}
			$('#trbrowserstatusFF').css('display','none');
			$('#trbrowserstatusSAF').css('display','none');
		}else if($.browser.mozilla){
			$('#trbrowserstatusMSIE').css('display','none');
			if(browserstatusFF == pass){ $('#trbrowserstatusFF').css('display','none');}else{error=true;}
			$('#trbrowserstatusSAF').css('display','none');
		}else if($.browser.safari){
			$('#trbrowserstatusMSIE').css('display','none');
			$('#trbrowserstatusFF').css('display','none');
			if(browserstatusSAF == pass){ $('#trbrowserstatusSAF').css('display','none');}else{error=true;}
		}

	    // screen width
	    if(window.screen.width >= 1024 && window.screen.height >= 768)
	    {
	        $('#screen').html(pass);
			$('#trscreen').css('display','none');
	    }
	    else
	    {
	        var screenMsg = 'Please adjust your screen resolution to 1024x768';
	        $('#screen').html(screenMsg);
			error = true;

	    }
		
		//Not using pdf anymore so testing is not needed
		$('#reader').html(pass);
		$('#trreader').css('display','none');
	   /*// adobe reader
	    if(!$.browser.safari && !detectPDF())
	    {
	    	var download_link='http://get.adobe.com/reader/';
	        var pdfFailMsg = 'Please <a href="javascript:void(0);" onClick="window.open('+'\''+download_link+'\''+', \'Window1\', \'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=600,left = 860,top = 500\');">click here</a> to download the latest Adobe Acrobat Reader';
	        $('#reader').html(pdfFailMsg);

			$('#reader').css('color','#FF0000');
			error = true;
	    }
	    else
	    {
	        $('#reader').html(pass);
			$('#trreader').css('display','none');
	    }*/

		/* //Removed because the site isnt affected by popups
		//pop-up blocker check
		try
		  	{
				var mine = window.open('','','width=1,height=1,left=0,top=0,scrollbars=no');
			 	if(mine){
			    	var popUpsBlocked = false;
			 	}else{
			    	var popUpsBlocked = true;
				}
			 	mine.close();
			}
		catch(err)
			{
				var popUpsBlocked = true;
			}

		if(popUpsBlocked){
			$('#popups').html('You will need to disable your pop-up blocker for this site to function correctly.');
			$('#popups').css('color','#FF0000');
		}else {
		 	$('#popups').html(pass);
		}*/
		$('#trPopup').css('display','none');

		// -----------------------------------------------------------------------------
		// Globals
		// Major version of Flash required
		var requiredMajorVersion = 10;
		// Minor version of Flash required
		var requiredMinorVersion = 0;
		// Minor version of Flash required
		var requiredRevision = 0;
		// -----------------------------------------------------------------------------
		// 

		// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
		var hasProductInstall = DetectFlashVer(6, 0, 65);

		// Version check based upon the values defined in globals
		var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

		// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
		if ( hasProductInstall && !hasReqestedVersion ) {
			// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
			// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
			// DO NOT MODIFY THE FOLLOWING FOUR LINES
			// Location visited after installation is complete if installation is required
			var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
			var MMredirectURL = window.location;
			document.title = document.title.slice(0, 47) + " - Flash Player Installation";
			var MMdoctitle = document.title;


			/*AC_FL_RunContent(
				"src", "playerProductInstall",
				"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
				"width", "550",
				"height", "300",
				"align", "middle",
				"id", "detectionExample",
				"quality", "high",
				"bgcolor", "#3A6EA5",
				"name", "detectionExample",
				"allowScriptAccess","always",
				"type", "application/x-shockwave-flash",
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
			);*/

			var download_link='http://www.adobe.com/go/getflash/';
			var alternateContent = 'Please <a href="javascript:void(0);" onClick="window.open('+'\''+download_link+'\''+', \'Window1\', \'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=600,left = 860,top = 500\');">click here</a> to get the latest Adobe Flash Player.';
			//document.write(alternateContent);  // insert non-flash content
			$('#flash').html(alternateContent);
			$('#flash').css('color','#FF0000');
			error = true;

		} else if (hasReqestedVersion) {
			// if we've detected an acceptable version
			// embed the Flash Content SWF when all tests are passed
			/*$('#flash').html(AC_FL_RunContent(
					"src", "/load/js/flash_check/example",
					"width", "550",
					"height", "200",
					"align", "middle",
					"id", "detectionExample",
					"quality", "high",
					"bgcolor", "#FFFFFF",
					"name", "detectionExample",
					"allowScriptAccess","always",
					"type", "application/x-shockwave-flash",
					'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
					"pluginspage", "http://www.adobe.com/go/getflashplayer"
			));*/
			$('#flash').html(pass);
			$('#trflash').css('display','none');
		} else {  // flash is too old or we can't detect the plugin
			var download_link='http://www.adobe.com/go/getflash/';
			var alternateContent = 'flash1 Please <a href="javascript:void(0);" onClick="window.open('+'\''+download_link+'\''+', \'Window1\', \'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=600,left = 860,top = 500\');">click here</a> to get the latest Adobe Flash Player.';
			//document.write(alternateContent);  // insert non-flash content
			$('#flash').html(alternateContent);
			$('#flash').css('color','#FF0000');
			error = true;
		}


	    if(!error){
			$("#Complete_passed_Text").css('display','inline');
			return true;
	    }else{
			$("#Complete_update_Text").css('display','inline');
			return false;
		}

	};


	function Popupcheck(){
		//pop-up blocker check
		try
		  	{
				var mine = window.open('','','width=1,height=1,left=-2,top=0,scrollbars=no');
			 	if(mine){
					mine.close();
			    	return false;
			 	}else{
					mine.close();
			    	return true;
				}
			}
		catch(err)
			{

				return true;

			}

	};
