function popWin(url,w,h) {	// popup script copyright h1Web.  We rule all!
	w=window.open(url,"w","resizable=1,scrollbars=1,width="+w+",height="+h) 
	if (w)	{	w.focus()	}	// IF put in to prevent JS errors on browsers with popup blockers
}
function resize_ad(pattern){
	$$('img').each( function(elt) {
		var src = elt.readAttribute('src');
		if( src && src.indexOf(pattern) >= 0) elt.writeAttribute('width','336px');
	});
}

function submitenter(myfield,e)	{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)   {
   myfield.form.submit();
   return false;
   }
else
   return true;
}

function wink(thecat,thestate) {	// simple show/hide div function
	target = document.getElementById ? document.getElementById(thecat) : document.all[thecat]
	if (thestate=='flip')	// accepted states: block, none or flip
		{	thestate= target.style.display=='block' ? 'none' : 'block';	}
	target.style.display = thestate
}
