﻿// JScript File
function trim(str) 
 {
  return str.replace(/^\s+/, "").replace(/\s+$/, "");
}
function LoginValidation()
{
 var UserId=document.getElementById("Login1_txtusername").value;
 var Password=document.getElementbyId("Login1_txtpassword").value;
 UserId=trim(UserId);
 Password=trim(Password);
 var Res=true;
  
  if(Res)
  {
  if(UserId="")
  {
    alert("Please Enter UserId"); 
    Res=false;
    
    }
   }
   if(Res)
   {
   if(Password="")
   {
     alert("Please Enter Password");
     Res=false;
   }
   }
   return Res;
   }
 


function OpenNewPage()
{
   var width=screen.width;
   width = parseFloat(width);
      
   var height=screen.height;
   height = parseFloat(height) * 0.8;
  
   ChildWindow = window.open ('Select', 'SerialNoInformation', 'toolbar=0,location=0,directories=0,status=1,menubar=0,center=yes,scrollbars=0,resizable=no,top=0,left=0')
   ChildWindow.resizeTo(width,height);
   ChildWindow.focus()
   ChildWindow.location.href="photo.aspx";

}


