timer = setTimeout('latePop()',1000);
//timer1 = setTimeout('latePop1()',1000);
 
function GetCookie(NameCookie)
{
	var i = document.cookie.indexOf(NameCookie + '=' );                                                       
	if (i != -1)
	{ 
		i += NameCookie.length + 1;
		NameEnd = document.cookie.indexOf(';', i); 
		if (NameEnd == -1)
		{
			NameEnd = document.cookie.length;
		}              
	
		return  unescape(document.cookie.substring(i, NameEnd));                
	}
	else
	{
		return "";  
	}       
}
 


function latePop()
{
	clearTimeout(timer); 
	Cookievalue = GetCookie('newspop');
	cw=Cookievalue.charAt('w');
	if (!cw )  
	{ 
		var ww = screen.width/2;
		var hh = screen.height/2;
		ww=396;hh=385;
		newspop = window.open('popup.htm','emp','width='+ww+',height='+hh+',top=170,left=100, menubar=no, toolbar=no,status=no,scrollbars=no,scrollbars=no,location=no,directiories=no,resizable=yes');  
//		newspop.focus(); 
		
	}
}

