
function checkbrowser()
{
   // check to see if the browser fails any core requirements
   var brow = bhawk.browser();
   var ver = bhawk.version(); 
if(brow == 'IE')
       javaver = bhawk.javaversion();
   else
       javaver = bhawk.javaplugin(); 
   if (	// however you wish.

	
      bhawk.width() < 800                                     ||
	bhawk.height() < 600                                    ||
	bhawk.flash() < 9                                       ||
	bhawk.sessioncookies() == false                         ||
       (brow == 'IE' && ver < 8)        ||
        (brow == 'Firefox' && ver < 3.5) ||
        (brow == 'Safari' && ver < 5)    ||
        (brow == 'Chrome' && ver < 11)   ||
        bhawk.javascriptenabled() != 1 ||
        bhawk.popupsblocked() == true  ||
        (brow == 'IE' && bhawk.activexenabled() != 1) ||
        bhawk.language() != 'English'  ||
        bhawk.acrobat()  == false      ||
       bhawk.acrobatverex() < 9		||
	javaver < 1.6


      )
   {
        // show browser help instead of allowing user to continue, since we know they don't meet the site's requirements


        // TODO: Set this to the caption you want displayed at the top of the browser help window
        var caption = "My Browser Check";

        // TODO - optional: If you set up a CNAME record that maps whatever.yourdomain.com to ret.browserhawk.com (highly recommended) then replace
        // ret.browserhawk.com in the variable defined below with the fully qualified domain name used in your CNAME record (i.e. var bhtgDomain = 'http://browserhelp.mycompany.com'; )
        var bhtgDomain = "http://ret.browserhawk.com";

        // TODO: Set your BHTG account ID here if using the paid version of the service:
        var bhtgAccountID = 'cairsolutions';

        bhawkret.showResults(caption, bhtgDomain + '/bhtg/ret/browsercheck.aspx?acct=' + bhtgAccountID + '&customtest=ccspecial&customstyle=std1&TB_iframe=true&height=480&width=580',retHelpNotAvail);

        return false; // form data will NOT be submitted
   }
   else
	return true; // form data will be submitted
}


function myformValidator()
{
 return true;
}


function retHelpNotAvail()
{
   // In the highly unlikely event that your script cannot load the RET library due to a
   // network failure, then this function will be called when you attempt to show the
   // RET results, instead of the results being displayed. This is not an expected scenario
   // but best practices are to have a backup plan in place just in case...
   // For this example we'll simply display an alert, but you can do whatever you wish of course.
   // To test this simply comment out the bhtg.js script tag from above.
   // Example:
        alert('Your browser does not meet the requirements of x, y, z. Please correct these settings and try again. For more detailed help please try again shortly (our detailed help system is momentarily unavailable).');
}
function checkbrowserhelp()
{
   
    // TODO: Set this to the caption you want displayed at the top of the browser help window
    var caption = "My Browser Check";

    // TODO - optional: If you set up a CNAME record that maps whatever.yourdomain.com to ret.browserhawk.com (highly recommended) then replace
    // ret.browserhawk.com in the variable defined below with the fully qualified domain name used in your CNAME record (i.e. var bhtgDomain = 'http://browserhelp.mycompany.com'; )
    var bhtgDomain = "http://ret.browserhawk.com";

    // TODO: Set your BHTG account ID here if using the paid version of the service:
    var bhtgAccountID = 'cairsolutions';

    bhawkret.showResults(caption, bhtgDomain + '/bhtg/ret/browsercheck.aspx?acct=' + bhtgAccountID + '&customtest=ccspecial&customstyle=std1&TB_iframe=true&height=480&width=580',retHelpNotAvail);

    return false; // form data will NOT be submitted

}




