// JavaScript Document


function popNewWin(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', menubar=yes'
 params += ', toolbar=yes'
 params += ', scrollbars=yes'
 params += ', fullscreen=yes';

 newwin=window.open(url,'bd_window', params).blur();
 //if (window.focus) {newwin.focus()}
 this.window.focus;
 return false;
}



function popNewWinOld(frm)
{
	//alert('Pop up'); 			Set_Cookie(name,value,expires,path,domain,secure)
	days = 1; 					// days to expire
	expire = new Date();
	expire.setTime(expire.getTime()+(days*24*60*60*1000));
	id = expire.getTime();
	//URL = richard;
	//richard = 'http://3mobile.itsourlocal.com/'
	// URL was ### 
	richard = 'http://www.itsourlocal.com/deal'
//'http://3mobileshop.at/ItsOurLocal?LID=pop&DURL=http://threestore.three.co.uk/dealsummary.aspx?offercode=24LP15GD69'
	//eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=800,height=600,left = 240,top = 212').blur()");
	//if (Get_Cookie('iolpopunder') != 'true')
	//{
		window.open(richard,'iolWin','fullscreen=yes,resizable=yes,height=768,width=1180,directories=yes,menubar=yes,location=yes,toolbar=yes,scrollbars=Yes').blur();
		//		added toolbar=yes - show the "back" button etc...			(AB : 14/10/09)
		// alwaysLowered=yes, Netscape (not IE) always bottom of stack		(AB : 11/05/10)
		// .blur() - removed to avoid popping under !!!!					(AB : 11/05/10)
		this.window.focus();
		//Set_Cookie('iolmainpop','true',expire);
	//}
}
