function init()
{
}
function glossary(term) {
openWin(pathToAppRoot+"etc/glossaryPopup.jsp?m="+mode+"&term="+escape(term)+"","glossary", 324, 399, false);
}
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) {
//alert("in script");
openWin(pathToAppRoot+"etc/externalUrlPrompt.jsp?u="+escape(extUrl),"externalUrl", 400, 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=="Search") {
textboxObj.value=""
}
if (!clickIn && textboxObj.value.length==0) {
textboxObj.value="Search"
}
}
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');
}
function writeInteriorHeader(pathTo) {
document.write('\n');
}
function writeStayInformed(pathTo) {
document.write('\n');
}
function writeSubHeader(pathTo, photo) {
document.write('\n');
}
function go() {
if(document.getElementById("dropdown").selectedIndex==1)
window.open('http://www.pinkribbon.at');
if(document.getElementById("dropdown").selectedIndex==2)
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;
}
}