var STR_Scr_Loaded='N';
function fnShowErrMsg()
{
	var STR_Error_Msg = '';
	var STR_Url = '';
	var Str_Focus = '';
	 
	Str_Focus =document.getElementById('txtLogin').focus();	 
	STR_Error_Msg = document.getElementById('txtMessage').value;
	STR_Url		  = 'Gen_Error_Screen.aspx?ErrMsg='+ STR_Error_Msg;	
	//document.getElementById('cmbSite').value=0;
	document.getElementById('txtLogin').value='';	 
	if (STR_Error_Msg != '')
	{			
		//createWindow(STR_Url,'window2','width=400,height=200,menubar=no,resizable=no,scrollbars=no,status,location')		
		window.alert(STR_Error_Msg);		
	}
}
 
function createWindow(cUrl,cName,cFeatures) 
{ 	
	var xWin = window.open(cUrl,cName,cFeatures);	
}
 
/*function fnDisplayForgotPwd()
{
	var strLogin = '';
	
	strLogin = document.getElementById('txtLogin').value;	
	if (strLogin == '')
	{
		window.alert('Login Id can not be blank.');
		return;		
	}  
} */
function CheckBlank(Criteria)
{
    /* Criteria  'F' for ForgetPassword, 'S' for Submit */
    if(document.getElementById('txtLogin').value=='')
    {
        alert('Login Id can not be blank');
        document.getElementById('txtLogin').focus();
        return false;
    }
    if(Criteria=='S')
    {
        if(document.getElementById('txtPassword').value=='')
        {
            alert('Password can not be blank');
            document.getElementById('txtPassword').focus();
            return false;
        }
    }
}
function callhelp()
		{	
		  window.open("HelpSiteforWTP/Frame.htm","window1","width=800,height=600,left=100,top=50,resizable=yes");
		  return false;
		}