
function promptUserForExam2()
{
    if (confirm('You are about to begin a simulated MBE.  ONCE YOU BEGIN THIS TEST, YOU WILL NOT BE ABLE TO RESTART.  The test will simulate an actual  Multistate Bar Examination.  You will be given 3 hours to take questions 1-100.  You will then be given up to 2 hours for a break, after which you will be given 3 more hours to take questions 101-200.  If you choose to quit the test at any time, your score will be tallied based on the number of questions answered.  Are you ready to proceed?'))
    {
        exam2Agreement();         
    }
}

function exam2Agreement()
{
    $(document).ready
    (
        function()
        {
            tb_show("NCBE Agreement",'/Exams/Exam2Agreement.aspx?height=210&width=400','agreedYesNo');
        }
    ); 
}

function disableEnterKey(e)
{
     var key;      
     if(window.event)
          key = window.event.keyCode; //IE
     else
          key = e.which; //firefox      

     return (key != 13);
}

function submitFormOnEnter(e)
{
    var characterCode //literal character code will be stored in this variable

    if(e && e.which)
    { 
        //if which property of event object is supported (NN4)
        e = e;
        characterCode = e.which; //character code is contained in NN4's which property
    }
    else
    {
        e = event;
        characterCode = e.keyCode; //character code is contained in IE's keyCode property
    }

    if(characterCode == 13)
    { 
        //if generated character code is equal to ascii 13 (if enter key)
        //document.forms[0].submit(); //submit the form
        __doPostBack('ctl00$LoginControl$LinkButtonLogin','');
        return false;
    }
    else
    {
        return true;
    }   
}

function AddToCart(ALurl)
{
    var mess;
    mess = 'You will now be sent to the purchasing site for your Emanuel Bar Review products.\n\n'
    mess = mess + 'If you would like to return to Emanuel Bar Review to browse more items'
    mess = mess + ' or access those items you have already purchased, please click the'
    mess = mess + '\"Continue Shopping\" link.'
    
    if (confirm(mess))
    {
        location.href = ALurl;
    }
}

function openSmallWindow(urlToOpen)
{
    var winProps = 'width=360,height=240,left=200,top=200,';
    var newWin = open(urlToOpen, '', winProps);
}

function openBigWindow(urlToOpen)
{
    var winProps = 'width=600,height=400,left=200,top=200,';
    var newWin = open(urlToOpen, '', winProps);
}


function showPasswordtextLabel()
{
var pobj=document.getElementById("ctl00_LoginControl_txtPassword");
var obj=document.getElementById("ctl00_LoginControl_lbltxtPassword");
var str=pobj.value;

if (str.length<=0)
{
obj.style.display="inline";
pobj.style.display="none";
}
}

function HidePasswordtextLabel()
{

var obj=document.getElementById("ctl00_LoginControl_lbltxtPassword");

obj.style.display="none";
var pobj=document.getElementById("ctl00_LoginControl_txtPassword");
pobj.style.display="inline";
pobj.focus();

}
