﻿     function popUpFullProcess()
        {
           
             window.open("popUpFullProcess.html",null,"height=410,width=445,left=280,top=100,resizable=true,scrollbars=true, status=yes,toolbar=no,menubar=no,location=no");
        }
     
      function popUpPartialProcess()
        {           
             window.open("popUpPartialProcess.html",null,"height=410,width=445,left=280,resizable=true,scrollbars=true,top=100,status=yes,toolbar=no,menubar=no,location=no");
        }      
       
     function popUpWebNotificationEdit()
        {
           
             window.open("popup.html",null,"height=410,width=445,left=280,top=100,resizable=true,scrollbars=true,status=yes,toolbar=no,menubar=no,location=no");
        }
     function popUpWebNotificationEdit2()
       {
       
            window.open("meetteam.html",null,"height=410,width=445,left=280,top=100,resizable=true,scrollbars=true,status=yes,toolbar=no,menubar=no,location=no");
       }
   function setPopUpPoistion(popUpId)
   {    
    
       var divHeight = 300;
       var divWidth = 200;
      
       if(parseInt(document.getElementById(popUpId).style.heigh) > 0)
           {
                divHeight = parseInt(document.getElementById(popUpId).style.height);
           }
       else if(parseInt(document.getElementById(popUpId).offsetHeight) > 0)
           {
                divHeight = parseInt(document.getElementById(popUpId).offsetHeight);
           }
            
       if(parseInt(document.getElementById(popUpId).style.width) > 0)
           {
                divWidth = parseInt(document.getElementById(popUpId).style.width);
           }
        
       document.getElementById(popUpId).style.top = ((screen.availHeight - divHeight)/2 + getScrollTop() - 70) + "px";
       
       document.getElementById(popUpId).style.left = ((screen.availWidth - divWidth)/2 + document.documentElement.scrollLeft) + "px";
 }
 function getScrollTop()
    {
	    var scrollTop;
    	
	    if(document.body.scrollTop == 0)
	        {
	            scrollTop=document.documentElement.scrollTop;
	        }
	    else
	        {
	            scrollTop=document.body.scrollTop;
	        }
	    return scrollTop;
    }
