
 /*var mywindow = window.open('','','width=1,height=1,left=0,top=0,menubar=no,location=no,resizable=no,scrollbars=no,status=no');
 if(mywindow )
    var popUpsBlocked = false
 else
    var popUpsBlocked = true
 mywindow.close()
 if(popUpsBlocked)
  alert('We have detected that you are using popup blocking software.\nThis easy article can show you how to detect this using Javascript...');
 
 */
 /*
 onkeydown = function(e) {
		if (e.which == 116){ ShowPopUp = false;}
	};
 
 onbeforeunload = function(oEvent){
	return WarningOnExit(oEvent);
	} ;
 
ShowPopUp = true;
function WarningOnExit(e) 
{
		
	var domainname = "http://" + location.host;
	if((location.host != "64.225.152.55")  && (location.host !="www.lfstage.com"))
	{
		var ev=(!e)?window.event:e;//IE:Moz
		if (ev.pageX){//Moz			
			posx=ev.pageX;
			posy=ev.pageY;			
			}
		else 
		{
			posx=ev.clientX;
			posy=ev.clientY;	
		}	
		
		var PopUpsBlocked = false;	
		if (navigator.userAgent.indexOf("MSIE")!=-1) 
		{	
			
			
			if((posy<-10) && (posx > 50 ))
			{
				if(ShowPopUp == true )
				{
							
					var mywindow = window.open(domainname + '/include/majorsavings.html','GiftCard','width=360,height=390,scrollbars=yes,maximized=yes,resizable=yes')
					if(mywindow )
    					PopUpsBlocked = false
 					else
    					PopUpsBlocked = true
    				if(PopUpsBlocked == true )
    				{
    					alert("As a Special 'Thank You' for visiting our site, Click 'CANCEL' in the next window for Best Offers on the Internet from Major Savings.\n");
    					window.event.returnValue = "\n\nJust Click 'CANCEL' for Best Offers on the Internet from Major Savings.\n\n";			
  			  			document.location = "https://secure.majorsavings.com/smartsellonline/SA/lqdfsopt.aspx";
    				}

				}
				else
				{			
				ShowPopUp = true;
				}
			}
		}
	    else
		{	
			if(ShowPopUp == true )
			{			
				
				var mywindow = window.open(domainname + '/include/majorsavings.html','GiftCard','width=360,height=390,scrollbars=yes,maximize=yes,resizable=yes')		
				
				if(mywindow != null)
    				PopUpsBlocked = false
 				else
    				PopUpsBlocked = true
    			
    			
    			if(PopUpsBlocked == true )
    			{	
    				
    				alert("As a Special 'Thank You' for visiting our site, Click 'CANCEL' in the next window for Best Offers on the Internet from Major Savings.\n");
    											
    				if (navigator.userAgent.indexOf("Safari")!=-1 ) 
					{	
						onbeforeunload = null;	
						document.location = "https://secure.majorsavings.com/smartsellonline/SA/lqdfsopt.aspx";												
						return "\n\nJust Click 'CANCEL' for Best Offers on the Internet from Major Savings.\n\n";	
						
						
    					//ev.returnValue  = "\n\n\nJust Click 'CANCEL' for Best Offers on the Internet from Major Savings.\n\n\n";	
						//document.location = "https://secure.majorsavings.com/smartsellonline/SA/lqdfsopt.aspx";	   
						
						//ev.returnValue  = "\n\nJust Click 'CANCEL' for Best Offers on the Internet from Major Savings.\n\n\n";	   				
					}
					else
					{
						document.location = "https://secure.majorsavings.com/smartsellonline/SA/lqdfsopt.aspx";   
    					ev.returnValue  = "\n\nJust Click 'CANCEL' for Best Offers on the Internet from Major Savings.\n\n";	
    					
    				}		
					
    				
				}
				else
				{					
					if (navigator.userAgent.indexOf("Chrome")!=-1 ) 
					{	
						alert("As a Special 'Thank You' for visiting our site, Click 'Stay on Page' in the next window for Best Offers on the Internet from Major Savings.\n");
						onbeforeunload = null;		
						document.location = "https://secure.majorsavings.com/smartsellonline/SA/lqdfsopt.aspx";								
						return "\n\nJust Click 'Stay on Page' for Best Offers on the Internet from Major Savings.\n\n";	
												

					}
				}
												
			}
			else
			{			
				ShowPopUp = true;
			}		
		}
	}
	
}


function GetWidth()
{
        var x = 0;
        if (self.innerHeight)
        {
                x = self.innerWidth;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                x = document.documentElement.clientWidth;
        }
        else if (document.body)
        {
                x = document.body.clientWidth;
        }
        return x;
}

*/

