function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

function refillText(thefield){
if (thefield.value=="")
thefield.value = thefield.defaultValue
} 


function recordOutboundLink(link, category, action) {
  try {
    var pageTracker=_gat._getTracker("UA-18977246-2");
    pageTracker._trackEvent(category, action);
	if(action=="28coupon-Print" || action=="23coupon-Print" || action=="29coupon-Print") {
		printImg();
	} else {
		setTimeout('window.open("' + link.href + '","newwindow")', 100);
	}
  }catch(err){}
}

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18977246-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
