function externalLinks() {  
 if (!document.getElementsByTagName) return;  
 var anchors = document.getElementsByTagName("a");  
 for (var i=0; i<anchors.length; i++) {  
   var anchor = anchors[i];  
   if (anchor.getAttribute("href") &&  
       anchor.getAttribute("rel") == "external")  
     anchor.target = "_blank";  
 }  
}  
window.onload = externalLinks;


function launch_coupon(t) {
	h	= 400;
	w	= 570;
	wleft = (screen.width - w) / 2;
	wtop = (screen.height - h) / 2;

	day = new Date();
	stam = day.getTime();
	url	= t.href;
	newwindow	= window.open(url, stam,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width='+ w +',height='+ h +',left = '+ wleft +',top = '+ wtop);
	if (window.focus) {newwindow.focus()}
	return false;
}

