﻿//**************************************************************************************************************************//

                                           //Frond End Javascript Functions// 

//**************************************************************************************************************************//




//******************************************************Show Forgot Password Start ********************************************//
    function ShowForgotPass()
    {
        var TFPID=document.getElementById('ctl00_ContentPlaceHolder1_LoginControl_tbForgotpass');
        var VarUN=document.getElementById('ctl00_ContentPlaceHolder1_LoginControl_txtUserName');
        if(TFPID.style.display=='none')
        {
        TFPID.style.display='block';
        VarUN.focus();
        }
        else if(TFPID.style.display=='block')
        {
        TFPID.style.display='none'
        }
    }


    function showforgotpassword_TBL()
    {
        var tblLog=document.getElementById('ctl00_ContentPlaceHolder1_tblLogin');
        var tblLogUtxt=document.getElementById('ctl00_ContentPlaceHolder1_txtUname');
        var tblFP=document.getElementById('ctl00_ContentPlaceHolder1_tbForgotpass');
        var tblFPEmailtxt=document.getElementById('ctl00$ContentPlaceHolder1$txtemail');
        if(tblFP.style.display=='none')
        {
        tblFP.style.display='block';
        tblLog.style.display='none';
        tblFPEmailtxt.focus();
        }
        else 
        {
        tblFP.style.display='none';
        tblLog.style.display='block';
        tblLogUtxt.focus();
        }
    }



//******************************************************Show Forgot Password End ********************************************//



//******************************************************Job Function Start ********************************************//
  
    function winopenjobDet(tit)
    {
        window.open ("sendcv.aspx?ReV="+ tit,"jbkjjh","menubar=0,resizable=0,location=0,status=0,scrollbars=1,width=650,height=650");
    }
//****************************************************** Job Function End ********************************************//


//********************************************** User Image Upload Window Open Function Start ********************************//

    function winopenUploadImages(atit,w,h)
    {
        window.open (atit,"jbkjh","menubar=0,resizable=0,location=0,status=0,scrollbars=0,width="+w+",height="+h+" ");
    }
  
//********************************************** User Image Upload Window Open Function Start ********************************//


//********************************************** View Large Image Function Start ********************************//  
    function winopenViewLargeImages(picid)
    {
        var j=screen.height/3;
        var k=screen.width/3;
        window.open ("PopUp/ViewLargeImage.aspx?pid="+picid,"jbkhghjh","menubar=0,resizable=0,location=0,top="+j+",left="+k+",right="+k+",screenX=0,status=0,scrollbars=0,width=2,height=2");
    }
  
 //********************************************** View Large Image Function End ********************************//

    //********************************************** View Large Image Function Start ********************************//
    function winopenforLarge_Img(picid) {
        //winopenViewLargeImages(picid);
        window.open("Displayimg.aspx?picid=" + picid, "jbkhghddjh", "menubar=0,resizable=1,location=0,top=0,left=0,right=0,screenX=0,status=0,scrollbars=1,width=500px,height=400px");
        
    }

    //********************************************** View Large Image Function End ********************************//


    //*********************************************Window open for Gallery Images*********************************//
    function winopenGallery(url) {
       window.open(url,"jbkjjh", "menubar=0,resizable=0,location=0,status=0,scrollbars=1,width=650,height=650");
    }
    //***************************************** Window open for Gallery Images*********************************//
  
  //********************************************** UserProfile Function Start ********************************//  
    function UserProfile()
    {
        var uprofile=document.getElementById('ctl00_ContentPlaceHolder1_divProfile');
        var uploadpic =document.getElementById('ctl00_ContentPlaceHolder1_divUploadPic');
        var vgallery=document.getElementById('ctl00_ContentPlaceHolder1_divViewGallery');
        if(uprofile.style.display=='none')
        {
        uprofile.style.display='block';
        uploadpic.style.display='none';
        vgallery.style.display='none';
        }
    }
  
    function UserProfileUploadPic()
    {
        var uprofile=document.getElementById('ctl00_ContentPlaceHolder1_divProfile');
        var uploadpic =document.getElementById('ctl00_ContentPlaceHolder1_divUploadPic');
        var vgallery=document.getElementById('ctl00_ContentPlaceHolder1_divViewGallery');
        if(uploadpic.style.display=='none')
        {
        uploadpic.style.display='block';
        uprofile.style.display='none';
        vgallery.style.display='none';
        }
    }
  
    function UserViewGallery()
    {
        var uprofile=document.getElementById('ctl00_ContentPlaceHolder1_divProfile');
        var uploadpic =document.getElementById('ctl00_ContentPlaceHolder1_divUploadPic');
        var vgallery=document.getElementById('ctl00_ContentPlaceHolder1_divViewGallery');
        if(vgallery.style.display=='none')
        {
        uprofile.style.display='none';
        uploadpic.style.display='none';
        vgallery.style.display='block';
        }
    }
   //********************************************** UserProfile Function End ********************************//  
   
   
   //********************************************** Review Function Start ********************************//  
  
    function openAllReview()
    {
        var tblAllR=document.getElementById('ctl00_ContentPlaceHolder1_gvReview');
        var tblbyloc=document.getElementById('ctl00_ContentPlaceHolder1_gvReviewLocation');
        if(tblAllR.style.display='none')
        {
        tblAllR.style.display='block';
        tblbyloc.style.display='none';
        } 
    }
    
    //********************************************** Review Function End ********************************//  
  
  
    //************************************** Open By Location Function Start ********************************//  
    function openbylocation()
    {
        var tblAllR=document.getElementById('ctl00_ContentPlaceHolder1_gvReview');
        var tblbyloc=document.getElementById('ctl00_ContentPlaceHolder1_gvReviewLocation');
        if (tblbyloc.style.display='none')
        {
        tblbyloc.style.display='block';
        tblAllR.style.display='none';
        } 
    }
 
 //************************************** Open By Location Function End ********************************//  
 
 
 //************************************** Real Estate Function Start ********************************//  
    function blockSecondImage()
    {
        var tdSim=document.getElementById('spnSimg');
        var tdFu=document.getElementById('spnSimgControl');
        if(tdSim.style.display=='none')
        {
        tdSim.style.display='block';
        tdFu.style.display='block';
        }
        else if(tdSim.style.display=='block')
        {
        tdSim.style.display='none';
        tdFu.style.display='none';
        }
    }  
  //************************************** Real Estate Function End ********************************//  
  
  //*************************************** Job Function Start *************************************//  
    function WindowSendcv()
    {
        var c=document.getElementById('ctl00_ContentPlaceHolder1_AId').title;
        window.open ("Sendcv.aspx?ReV="+ c,"jbkyjh","menubar=0,resizable=0,location=0,status=0,scrollbars=1,width=650,height=650");
    }
  
    function WindowSendcvDetail(vjid)
    {
        window.open ("Sendcv.aspx?ReV="+ vjid,"jbkjjh","menubar=0,resizable=0,location=0,status=0,scrollbars=1,width=650,height=650");
    }
  
    function winopenjob(vjid)
    {
        window.open ("sendcv.aspx?ReV="+ vjid,"jbkyjh","menubar=0,resizable=0,location=0,status=0,scrollbars=1,width=650,height=650");
    }

 //*************************************** Job Function End  *************************************//  
 
 
 //*************************************** Member Edit Function Start **********************************//  
    function winopenUploadImg()
    {
        window.open ("Uploadimage.aspx","jbkjh","menubar=0,resizable=0,location=0,status=0,scrollbars=0,width=400,height=35");
    }
 //*************************************** Member Edit Function End **********************************//  
  