///////////////////////////////////////////////////////////
// Function to check if the applet is the required version
function IsAppletVersionOK(applet, versionRequired) 
{
    try {
        var version = applet.getAppletVersion();
	    return (parseFloat(version) > versionRequired);
	}
	catch (ex) {
	    return false;
	}
}	

///////////////////////////////////////////////////////////
// Function to check if the applet is loaded or not
function IsAppletLoaded(applet) 
{
    if (applet == null || typeof (applet) == "undefined")
        return false;

    try {
        var version = applet.getAppletVersion();
        return true; // able to run applet
    }
    catch (ex) {
        return false;
    }
}

///////////////////////////////////////////////////////////
// Funtion to check if all validators on the page are valid
function ValidateFormInputs() 
{
	var isValid = false;
	
	if (typeof(Page_ClientValidate) == 'function')
	{
		Page_ClientValidate();
		isValid = Page_IsValid
	}
	
	return isValid;
}