﻿// JScript File

function showhidediv(flg,e)
{
    var obj =  document.getElementById('DvRemember'); 
    if(flg == 1)
    {
        obj.style.display = 'none';
    }     
    else
    {
        var x = 0 , y = 0;
	    x = parseInt(e.clientX); 
	    y = parseInt(e.clientY);
        obj.style.display = '';
    }
}


function IsPoliciesAccepted(source, arguments)
{            
   var terms_conditions = document.getElementById("ctl00_CPH_Articles_cbAcceptTerms").checked;
   if (terms_conditions==true)
      arguments.IsValid=true;
   else
   arguments.IsValid=false;
}

function runSearchFocus(Arg,TextVal)
        {
                
            if (Arg.value == TextVal)
            {
                Arg.value= '';
            }
        }

        function runSearchBlur(Arg,TextVal)
        {
            
            if (Arg.value == '')
            {
                Arg.value= TextVal;
            }
        }


        function KeyDownHandler(btn,evt)
        {
            nInner = 1;
            if (btn != null) 
            {
                // process only the Enter key
                if (evt.keyCode == 13)
                {
                    // cancel the default submit
                    evt.returnValue=false;
                    evt.cancel = true;
                    // submit the form by programmatically clicking the specified button
                    btn.click();
                }
            }
            else
            {
                //evt.returnValue=false;
                evt.cancel = true;
            }
        }