	
var ActiveForm = 0;
var CrSubmit;  // delegate for CR form submission

var NN = navigator.appName == "Netscape";

if (NN)
{ // NS4+
	document.captureEvents(Event.KEYPRESS);
}

document.onkeypress = KeyPress; // NS4+ and IE4+	

function f1_old(e) // Check the keypress and submit on enter
{ 
	var code = (NN) ? e.which : window.event.keyCode;			
	if (code == 13) 
	{			
		if (ActiveForm == 1)
			document.form1.submit();
		else if (ActiveForm == 2)				
			document.subscriber.submit();
		else if (ActiveForm == 3)
			document.Previewsubscriber.submit();
	}
} 		 

/// If you wish to submit a form or validate upon user pressing CR,
/// either set CrSubmit to "document.whatever.submit" or to a specific
/// validation function.
function KeyPress(e) // Check the keypress and submit on enter
{ 
	var code = (NN) ? e.which : window.event.keyCode;			
	if (code == 13) 
	{			
		if (CrSubmit != null) {
			CrSubmit();
			return false;
		}
	}
} 		 


function articleAd()
{
	document.write('<table width="190" border="0" align="right" cellpadding="0" cellspacing="0">');
	document.write('  <tr>');
	document.write('    <td><div align="center" class="advertisement">ADVERTISEMENT</div></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td width="180" height="160" align="right" valign="top">');
	OAS_AD('Position1');
	document.write('     </td>');
	document.write('  </tr>');
	document.write('</table>');
}

// OAS Setup BEGIN

// Part 1
//configuration
OAS_url = 'http://oascentral.redherring.com/RealMedia/ads/';
//OAS_sitepage = window.location.hostname + window.location.pathname;
OAS_sitepage = 'redherring.com';
OAS_listpos = 'Left1,Position1,Right,Middle1';
OAS_query = '';
OAS_target = '_top';
//end of configuration
OAS_version = 10;
OAS_rn = '001234567890'; OAS_rns = '1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
function OAS_NORMAL(pos) {
  document.write('<A HREF="' + OAS_url + 'click_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" TARGET=' + OAS_target + '>');
  document.write('<IMG SRC="' + OAS_url + 'adstream_nx.cgi/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></A>');
}

// Part 2
OAS_version = 11;
if (navigator.userAgent.indexOf('Mozilla/3') != -1 || navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1)
  OAS_version = 10;
if (OAS_version >= 11) {
	if (location.href.indexOf('https:') == -1) { // show ad only if not under SSL
	  document.write('<SCRIPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/SCRIPT>');
	}  
}

// Part 3
function OAS_AD(pos) {
	try {
		if (OAS_version >= 11)
			OAS_RICH(pos);
		else
			OAS_NORMAL(pos);
  }
  catch (ex) {
  }
}

// OAS Setup END
