﻿// JScript File

 function ShowMyInfoPopUp(e)  /* code to open signup pop up */
	{	
//       
//       // SET BACKGROUND START
//        var dvBgImg = document.getElementById('dvBackImg'); 
//         if (window.innerHeight && window.scrollMaxY) 
//         {// Firefox
//            yWithScroll = window.innerHeight + window.scrollMaxY;
//            xWithScroll = window.innerWidth + window.scrollMaxX;
//         } 
//        else if (document.body.scrollHeight > document.body.offsetHeight)
//        { // all but Explorer Mac
//            yWithScroll = document.body.scrollHeight;
//            xWithScroll = document.body.scrollWidth;
//        } 
//        else 
//        { // works in Explorer 6 Strict, Mozilla (not FF) and Safari
//            yWithScroll = document.body.offsetHeight;
//            xWithScroll = document.body.offsetWidth;
//        }      	                                       
//            
//        dvBgImg.style.height= yWithScroll + 'px';
//        dvBgImg.style.width = xWithScroll + 'px';
//      
//        dvBgImg.style.left = '0px';
//        dvBgImg.style.top = '0px';

//        dvBgImg.style.display = 'block';
//                        
////    // SET BACKGROUND END
//       
        var	dvMyInfo = document.getElementById('dvMyInfo');
        var x = 0 , y = 0;
        
        
        dvMyInfo.style.left = (screen.width/2) - 300  + 'px';
		dvMyInfo.style.top = (screen.height /2) - 200 + 'px';	
		
        if(dvMyInfo.style.display == '')
		{ 
			dvMyInfo.style.display = 'block'; 			
		}
		else if(dvMyInfo.style.display == 'none')
		{
			dvMyInfo.style.display = 'block'; 			
		}
		else if(dvMyInfo.style.display == 'block')	
		{	
			dvMyInfo.style.display = 'none';	
		}
}
	
	  function CloseDivPopUp(Obj) //close pop on close button click
      {
        
        if(Obj != null)
	    {
	        Obj.style.display = 'none';
	    }
      }