function init() { } function interstit(url){ window.open(url); } function isValidSearchForm(formObj) { if (formObj.elements["query"].value.length==0 || formObj.elements["query"].value=="Search") { formObj.elements["query"].focus() alert("Ingrese palabra(s) clave de búsqueda antes de realizar una búsqueda.") formObj.elements["query"].focus() return false } return true } function openWin(url, name, ht, wd, scrolling) { var scrollYesOrNo="yes" if (arguments.length==5) { scrollYesOrNo=(scrolling?"yes":"no") } return window.open(url, name, "directories=no, location=no, menubar=no, resizable=no, scrollbars="+scrollYesOrNo+", status=no, toolbar=no, height="+ht+", width="+wd) } function getExternalUrl(extUrl) { openWin(pathToAppRoot+"etc/externalUrlPrompt.jsp?u="+escape(extUrl),"externalUrl", 324, 399, false) } function getROPUrl(extUrl){ openWin(pathToAppRoot+"etc/RopUrlPrompt.jsp?u="+escape(extUrl),"externalUrl", 330, 400, false) } function printPage() { if (window.print) { window.print() } else if (document.print) { document.print() } else { alert("To print this page, choose \"Print...\" from the \"File\" menu.") } } function checkSearchBox(textboxObj, clickIn) { if (clickIn && textboxObj.value=="Buscar") { textboxObj.value="" } if (!clickIn && textboxObj.value.length==0) { textboxObj.value="Buscar" } } function getResource(selectObj) { if (selectObj.selectedIndex>0) { newUrl=pathToAppRoot+selectObj.options[selectObj.selectedIndex].value if (newUrl.indexOf("Redir")==-1) { location.href=newUrl } else { window.open(newUrl,"","") } } } function writeHeader(pathTo) { document.write('\n'); document.write(''); document.write('\n'); document.write(''); document.write(''); document.write('\n'); document.write('\n'); } function writeInteriorHeader(pathTo) { document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); } function writeStayInformed(pathTo) { document.write('\n'); document.write(''); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); } function writeSubHeader(pathTo, photo) { document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); } function go() { if(document.getElementById("dropdown").selectedIndex==1) window.location="http://www.ribbonofpink.com/index.jsp"; if(document.getElementById("dropdown").selectedIndex==2) window.open('http://www.pinkribbon.at'); if(document.getElementById("dropdown").selectedIndex==3) window.open('http://www.ueberleben-mit-brustkrebs.de/'); } function trim(str) { if(str.charAt(0) == " ") { str = trim(str.substring(1)); } if (str.charAt(str.length-1) == " ") { str = trim(str.substring(0,str.length-1)); } return str; } function searchfield() { var search = (document.getElementById("searchkey")).value; search = trim(search); var match = /[^a-zA-Z0-9]/.test(search); if (match) { var rep = search.replace(/[\#\$\&\^\*\%\!\@\~\+\(\)]/g, ""); if(rep==""){ rep = "@"; } if(rep==".js"){ rep = "@"; } var strlen = rep.length-1; var match2=rep.substring(0,1); var match3=rep.substring(strlen); //var match3=rep.substring(rep.length-1,rep.length); if(match2=="<"){ if(match3==">") { rep = rep.substring(1,10); } else { rep = rep.substring(1,10); } } document.searchform["searchkeynew"].value = rep; }else{ document.searchform["searchkeynew"].value = search; } }