function spawn (targ,x,y) { window.open(targ,'secondary','width=' + x + ',height=' + y + ',scrollbars=yes'); } function schedulebox () { window.open('http://www.pbs.org/wgbh/pages/frontline/programs/pbsv.html','schedule','width=500,height=600,scrollbars=yes'); } function mailafriend () { window.open('http://www.pbs.org/wgbh/pages/frontline/us/mailfriend.html','mail','width=500,height=500,scrollbars=yes'); } function stopclicking(button) { button.value = "please wait"; return true; } function preload() { if (document.images) { if (typeof(document.F) == 'undefined'){ document.F = new Object(); } document.F.loadedImages = new Array(); var argLength = preload.arguments.length; for(arg=0;arg'); } function setcookie(name,value) { var today = new Date(); var expire = new Date(); var nDays = 180; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = name+"="+escape(value) + ";path=/wgbh/pages/frontline/;expires="+expire.toGMTString(); } function searchsubmit(){ document.topnavform.q.value = document.searchform.q.value + '+:site:www.pbs.org/wgbh/pages/frontline'; document.topnavform.submit(); } function handleclick (targ) { opener.location.href = targ; window.close(self); } function subtitle(targetdiv,target){ if(document.getElementById(targetdiv)){ document.getElementById(targetdiv).innerHTML = target; } }