function popCalendar(url,cname)
{
    var val=document.getElementById(cname).value;
    url=url+"?textbox="+cname+"&val="+val;
    window.open(url,'cal','width=220,height=270,left=670,top=180')
}
function popFeedback(url)
{
 
    
    window.open(url,'Feedback','width=1000,height=670,left=10,top=10,scrollbars=1')
}
 function showLayer(cdiv) {
                setLayerPosition(cdiv);

                var shadow = document.getElementById("shadow");
                var question = document.getElementById(cdiv);
 
                shadow.style.display = "block"; 
                question.style.display = "block";

                shadow = null;
                question = null;             
            }
            
            function hideLayer(cdiv) {
                var shadow = document.getElementById("shadow");
                var question = document.getElementById(cdiv);
 
                shadow.style.display = "none"; 
                question.style.display = "none";

                shadow = null;
                question = null; 
            }
            
            
            
            function setLayerPosition(cdiv) {
                var shadow = document.getElementById("shadow");
                var question = document.getElementById(cdiv);

                shadow.style.width = screen.width+"px";
                shadow.style.height =screen.height+"px";
                shadow = null;
                question = null;
            }
            
            
 function displayphotoform()
 {
    
    document.getElementById("div_photo").style.display="block";
    //document.getElementById("maintbl").className="transparent_class";
    document.getElementById("lbl_MsgPhoto").innerHTML ="";
    showLayer('div_photo');
 }
 
 function displayphotoformmsg()
 {
    
    document.getElementById("div_photo").style.display="block";
    //document.getElementById("maintbl").className="transparent_class";
    //document.getElementById("lbl_MsgPhoto").innerHTML ="";
    showLayer('div_photo');
 }
 
 function HidePhotoForm()
 {
     
     if(document.getElementById("div_photo").style.display=="block")
     {
        document.getElementById("div_photo").style.display="none";
        document.getElementById("maintbl").className="no";
        hideLayer('div_photo');
     }
     
 }
 
 
 function displayImageSlideShow()
 {
    
    document.getElementById("div_slideshow").style.display="block";
  
    showLayer('div_slideshow');
 }
 
  function HideImageSlideShow()
 {
     
     if(document.getElementById("div_slideshow").style.display=="block")
     {
        document.getElementById("div_slideshow").style.display="none";
        hideLayer('div_slideshow');
     }
     
 }
 
  function showLayerFullSize(cdiv) {
                setLayerPositionFullSize(cdiv);

                var shadow = document.getElementById("shadow");
                var question = document.getElementById(cdiv);
 
                shadow.style.display = "block"; 
                question.style.display = "block";

                shadow = null;
                question = null;             
            }
            
            function hideLayerFullSize(cdiv) {
                var shadow = document.getElementById("shadow");
                var question = document.getElementById(cdiv);
 
                shadow.style.display = "none"; 
                question.style.display = "none";

                shadow = null;
                question = null; 
            }
            
            
            
            function setLayerPositionFullSize(cdiv) {
         
                var shadow = document.getElementById("shadow");
                var question = document.getElementById(cdiv);

                shadow.style.width = screen.width+"px";
                shadow.style.height =screen.height+"px";
                 
                shadow = null;
                question = null;
            }
            
            function centerScreen(divID)
                {
                var elem = document.getElementById(divID);
                var x = (window.screen.width / 2) - (elem.offsetWidth / 2);
                var y = (window.screen.height / 2) - (elem.offsetHeight / 2); 
                elem.style.top = y+"px";
                elem.style.left = x+"px";
                }
            function AppoitmentList(id)
                 {
                  
                    document.getElementById("div_photo").style.display="block";
                    centerScreen("div_photo");
                    if(navigator.appName == "Microsoft Internet Explorer")
                    {
                   
                       window.frames['frm_DoctorDetails'].location.href ="DoctorDetails.aspx?id="+id;
                    }
                    else
                    { 
                         document.getElementById("frm_DoctorDetails").src="DoctorDetails.aspx?id="+id;
                    }
                    
                    
                    
                    showLayerFullSize('div_photo');
                    
                    
                 }
        function HideDocumentList()
             {
                 
                 if(document.getElementById("div_photo").style.display=="block")
                 {
                    document.getElementById("div_photo").style.display="none";
                    hideLayerFullSize('div_photo');
                 }
            }
