var isClicked=false;

function setOnclickLinks(){
	for(var i=0;i < document.links.length;i++){
		if (document.links[i].onclick==null)
			document.links[i].onclick = turnOffPopUp;
	}
}

function turnOffPopUp(){
	isClicked=true;
}


function doPopUpOffer(){
	if (!isClicked){
		/*if (window.showModalDialog){
			//window.showModalDialog("/showpage.php", "","dialogWidth:325px;dialogHeight:315px");
		}
		else{
			var theWin=window.open("/showpage.php", "NewsLetter", "width=325px,height=250px");
			theWin.focus();
		}*/
		var theWin=window.open("/showpage.php", "NewsLetter", "width=325px,height=250px");
		theWin.focus();
	}
}

/*
if (isie4up){
	window.onbeforeunload=doPopUpOffer;
}
else{
	window.onunload=doPopUpOffer;
}
*/
