/*
DEPENDENCIES
none

USAGE
wolf.loginServices.appId                =  ...          [appid to which the login is required]
wolf.loginServices.hostURL              =  ...          [usually https://run.wolfframeworks.com but if the url has been masked one can use thos urls]
wolf.loginServices.onSignInSuccess      = _onSignIn     [pointer to a function that is called after a sign in attempt]
wolf.loginServices.onSignedOut          = _onSignOut    [pointer to a function that is called after a sign out]
wolf.loginServices.onBeforeFormLogin    = beforeFormLogin;

wolf.formContainerId                    = "signin"      [name of the div where the sign in form should be placed]

function _onSignIn(inSession){//inSession will be true or false.}

function _onSignOut(){}

function beforeFormLogin()
{
    wolf.loginServices.loginBox     =   document.getElementById("te_sysUsers.WFlogin");
    wolf.loginServices.passwordBox  =   document.getElementById("te_sysUsers.WFpassword");
}
*/



/*LOAD DEPENDENCIES*/
//check if the commonlib exists and include it it doesn't
//commonlib is required by the ext helperlib.js and xmllib.js
try{if(!using){}}catch(e){document.write(unescape('%3Cscript type="text/javascript" language="javascript" src="http://run.wolfframeworks.com/widgets/code/commonlib.js">%3C/script>'))}

//check if the helperlib script is included. 
//The helperlib.js is required by the xmllib.js
try{if(!clsHelperLib){}}catch(e){document.write(unescape('%3Cscript type="text/javascript" language="javascript" src="http://run.wolfframeworks.com/widgets/release/wflib.js">%3C/script>'))}

function writeFormRender()
{
    document.write(unescape('%3Cscript type="text/javascript" language="javascript" src="http://demo.wolfframeworks.com/ewidgets/formrenderv1.js">%3C/script>'))    
}

//check if the formrenderv1 script is included. 
//The formrenderv1.js is required by the formwidget that prints the form
try{if(wolf.drawForm == null){writeFormRender()}}catch(e){writeFormRender()}




/*LOAD LEAF*/
//This is a leaf level library that has instructions on form printing
document.write(unescape('%3Cscript type="text/javascript" language="javascript" src="http://run.wolfframeworks.com/mc/em/application/pluginsecurity/objects/release/sysUsersLogin Screen_ewidget.js">%3C/script>'))
