var form; function checklogin(pgurl) { var userName = getCookie( 'SessUserName' ); if( userName != "" ) { document.location =pgurl; } else if(getCookie( 'User' ) != "" ) { document.location =pgurl; } else { document.location ="/domcfg.nsf/redirect?open&login&src=" + pgurl; } } function doSearch( ) { form = document.forms[0]; if( form.Search.value != "") { window.location.href = "/sitesearch/search?open&query=" + form.Search.value; } } function trim(inputstringTrim) { fixedTrim = ""; lastCh = " "; for (x = 0; x < inputstringTrim.length; x++) { ch = inputstringTrim.charAt(x); if ((ch != " ") || (lastCh != " ")) { fixedTrim += ch; } lastCh = ch; } if (fixedTrim.charAt(fixedTrim.length - 1) == " ") { fixedTrim = fixedTrim.substring(0, fixedTrim.length - 1); } return fixedTrim; } function properCase(inputstring) { u = inputstring.toUpperCase(); specialChars = " ~`@#$%^&*()_-+={}[]|\\:;\"'<>,.?/1234567890"; fixedProperCase = ""; twoPast = " "; lastChar = " "; for (place=0; place < inputstring.length; place++) { chr = u.charAt(place); if (specialChars.indexOf(lastChar) != -1) { if ((lastChar == "\'") && (twoPast != "D")) { chr = chr.toLowerCase(); } } else { chr = chr.toLowerCase(); } fixedProperCase += chr; twoPast = lastChar; lastChar = chr; } fixedProperCase = trim(fixedProperCase); return fixedProperCase; } function getCookie(name){ var cname = name + "="; var dc = document.cookie; if (dc.length > 0) { begin = dc.indexOf(cname); if (begin != -1) { begin += cname.length; end = dc.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin, end)); } } return ""; } function displayLoginButton() { var userName = getCookie( 'SessUserName' ); if( userName != "" || getCookie( 'User' ) != "" ) { document.write( "Abmelden" ); } else { document.write( "Anmelden" ); } } function displayUserName() { var userName = getCookie( 'SessUserName' ); if( userName != "" ) { document.write( "Sie sind angemeldet als
" + properCase( userName ) ); } else if(getCookie( 'User' ) != "" ) { document.write( "Sie sind angemeldet als
" + properCase( getCookie( 'User' ) ) ); } else { document.write( "Sie sind nicht angemeldet." ); } } function highlightLink( section ) { form = document.forms[0]; var url = window.location.pathname.toLowerCase(); if ( typeof section == 'undefined' ) { section=url; } if ( section.indexOf( "home" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c2','/image/globalbanner/banner_r2_c2_f3.gif',1); } else if ( section.indexOf( "/about/" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c3','/image/globalbanner/banner_r2_c3_f2.gif',1); } else if ( section.indexOf( "HR" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c3','/image/globalbanner/banner_r2_c3_f2.gif',1); } else if ( section.indexOf( "2 Products" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c4','/image/globalbanner/banner_r2_c4_f2.gif',1); } else if ( section.indexOf( "News" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c5','/image/globalbanner/banner_r2_c5_f2.gif',1); } else if ( section.indexOf( "5 Support" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c6','/image/globalbanner/banner_r2_c6_f2.gif',1); } else if ( url.indexOf( "/webnews/" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c5','/image/globalbanner/banner_r2_c5_f2.gif',1); } else if ( url.indexOf( "itworld" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c6','/image/globalbanner/banner_r2_c6_f2.gif',1); } else if ( url.indexOf( "/support/" ) != -1 ) { MM_nbGroup('down','navbar1','banner_r2_c6','/image/globalbanner/banner_r2_c6_f2.gif',1); } } function highlightClientLink( section ) { form = document.forms[0]; if ( section.indexOf( "HR" ) != -1 ) { MM_nbGroup('down','navbar1','forcliban_r2_c3','/image/clientbanner/forcliban_r2_c3_f2.gif',1); } else if ( section.indexOf( "/update" ) != -1 ) { MM_nbGroup('down','navbar1','forcliban_r2_c4','/image/clientbanner/forcliban_r2_c4_f2.gif',1); } else if ( section.indexOf( "Support" ) != -1 ) { MM_nbGroup('down','navbar1','forcliban_r2_c6','/image/clientbanner/forcliban_r2_c6_f2.gif',1); } else if ( section.indexOf( "/docs" ) != -1 ) { MM_nbGroup('down','navbar1','forcliban_r2_c4','/image/clientbanner/forcliban_r2_c4_f2.gif',1); } else if ( section.indexOf( "/pcrelease" ) != -1 ) { MM_nbGroup('down','navbar1','forcliban_r2_c4','/image/clientbanner/forcliban_r2_c4_f2.gif',1); } else if ( section.indexOf( "/webnews" ) != -1 ) { MM_nbGroup('down','navbar1','forcliban_r2_c5','/image/clientbanner/forcliban_r2_c5_f3.gif',1); } else if ( section.indexOf( "/problist" ) != -1 ) { MM_nbGroup('down','navbar1','forcliban_r2_c4','/image/clientbanner/forcliban_r2_c4_f2.gif',1); } else { MM_nbGroup('down','navbar1','forcliban_r2_c4','/image/clientbanner/forcliban_r2_c4_f2.gif',1); } } function doValidation() { form = document.forms.banner; if( form.Search.value=='' ) { alert( 'Please fill out the search criteria before doing a search' ); return false; } { return true; } } function doSubmit() { if (doValidation() ) { form.submit(); } } function doPost() { if ( getCookie( "UserPass" ) != '' ) { window.location.href = "/sitesearch/search?Open&login&query=" + form.Search.value; } else { window.location.href = "/sitesearch/search?Open&query=" + form.Search.value; } } //Below begins common JS for pages - mostly Dreamweaver created function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 2) { if ((img = MM_findObj(args[2])) != null && !img.MM_init) { img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src; if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array(); nbArr[nbArr.length] = img; for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } else if (event == "over") { document.MM_nbOver = nbArr = new Array(); for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1]; nbArr[nbArr.length] = img; } } else if (event == "out" ) { for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; } } else if (event == "down") { if ((nbArr = document[grpName]) != null) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; } document[grpName] = nbArr = new Array(); for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } function MM_changeProp(objName,x,theProp,theValue) { //v3.0 var obj = MM_findObj(objName); if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'"); } function doClock(){ // By Paul Davis - www.kaosweaver.com var t=new Date(),a=doClock.arguments,str="",i,a1,lang="1"; var month=new Array('January','Jan', 'February','Feb', 'March','Mar', 'April','Apr', 'May','May', 'June','Jun', 'July','Jul', 'August','Aug', 'September','Sep', 'October','Oct', 'November','Nov', 'December','Dec'); var tday= new Array('Sunday','Sun','Monday','Mon', 'Tuesday','Tue', 'Wednesday','Wed','Thursday','Thr','Friday','Fri','Saturday','Sat'); for(i=0;i1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];break; case "D": if ((Number(a1)==1) && (t.getDate()<10)) str+="0";str+=t.getDate();break; case "Y": str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);break; case "W":str+=tday[t.getDay()*2+Number(a1)];break; default: str+=unescape(a[i]);}}return str; } function displayBrandOceanLoginButton() { var userName = getCookie( 'SessUserName' ); if( userName != "" || getCookie( 'User' ) != "" ) { document.write( "

login Log out

" ); } else { document.write( "

login Log in

" ); } } function displayBrandOcean2LoginButton() { var userName = getCookie( 'SessUserName' ); var logOutHTML = "\"logout\""; var logInHTML ="\"login\"" if( userName != "" || getCookie( 'User' ) != "" ) { document.write(logOutHTML); }else{ document.write(logInHTML); } } function displayBrandOceanDELoginButton() { var userName = getCookie( 'SessUserName' ); var logOutHTML = "\"logout\""; var logInHTML ="\"login\""; if( userName != "" || getCookie( 'User' ) != "" ) { document.write(logOutHTML); }else{ document.write(logInHTML); } } function writeLeftNavLink( linkName, linkUrl, internalProductArea ) { var frmInternalProductArea; frmInternalProductArea = document.getElementById("InternalProductArea").value; //alert("Doc value: " + frmInternalProductArea.toLowerCase() ); //alert("Passed from script: " + internalProductArea.toLowerCase()); if( frmInternalProductArea.toLowerCase() == internalProductArea.toLowerCase() ) { document.write( '
  • ' + linkName + '
  • ' ); } else { document.write( '
  • ' + linkName + '
  • ' ); } }