var _POPUP_FEATURES='scrollbars=1,resizable=1,location=1,status=1,menubar=1,directories=1,width=1024,height=768'; function raw_popup(url,target,features){ if(isUndefined(features))features=_POPUP_FEATURES; if(isUndefined(target))target='_blank'; var theWindow=window.open(url,target,features); if(url.indexOf('cordell')<-1) { //don't resize calculator theWindow.resizeTo(screen.availWidth,screen.availHeight); } theWindow.focus();return theWindow; } function link_popup(src,features){try{return raw_popup(src.getAttribute('href'),src.getAttribute('target')||'_blank',features);} catch(e){}} function event_popup(e){try{link_popup(e.currentTarget);e.preventDefault();} catch(e){}} function event_popup_features(features){return function(e){link_popup(e.currentTarget,features);e.preventDefault()}}