function LoadTwo(url1, url2) { top.bottom.menu.location.href=url1; top.bottom.view.location.href=url2; } function PicRot() { // get the counter. value = GetCookie("PicRot"); // if the value is null, set it to 0. if (value == null) value = 0; if (value > 1) value=0; // increment the counter. value++; // store the info on cookie (will expire in 30 days). SetCookie("PicRot", value, 250); // print out the result. switch (value) { case 1: url = "http://www.smt.sandvik.com/412568770050D65E/FD8745F326323F31CA2567C8001284EE/DF0438B5A5FCEA24C1256E530045B864?Opendocument"; break; case 2: url = "http://www.smt.sandvik.com/412568770050D65E/FD8745F326323F31CA2567C8001284EE/8C686DB31B14F526C1256E530046C569?Opendocument"; break; default: url = "" } document.writeln(""); } function PicRotSPS() { // get the counter. value = GetCookie("sps_picrot"); // if the value is null, set it to 0. if (value == null) value = 0; if (value > 4) value=0; // increment the counter. value++; // store the info on cookie (will expire in 30 days). SetCookie("sps_picrot", value, 250); // print out the result. switch (value) { case 1: url = ""; break; case 2: url = ""; break; case 3: url = ""; break; case 4: url = ""; break; case 5: url = ""; break; default: url = "" } document.writeln(""); } function toggleDisplay(id) { switch (id.style.display) { case "block": id.style.display = "none"; break; default: id.style.display = "block"; break; } } function SetCookie(name, value, days) { var expire = new Date (); expire.setTime (expire.getTime() + (24 * 60 * 60 * 1000) * days); document.cookie = name + "=" + escape(value) + "; expires=" + expire.toGMTString(); } function DeleteCookie2(name2) { var expire2 = new Date (); expire2.setTime (expire2.getTime() - (24 * 60 * 60 * 1000)); document.cookie = name2 + "=; expires=" + expire2.toGMTString(); } function GetCookie(name) { var startIndex = document.cookie.indexOf(name); if (startIndex != -1) { var endIndex = document.cookie.indexOf(";", startIndex); if (endIndex == -1) endIndex = document.cookie.length; return unescape(document.cookie.substring(startIndex+name.length+1, endIndex)); } else { return null; } } var ns4 = (document.layers)? true:false // If browser is Netscape 4, this flag is true var ie4 = (document.all)? true:false // If browser is Internet Explorer 4, this flag is true function GetCookie2(name2) { var startIndex2 = document.cookie.indexOf(name2); if (startIndex2 != -1) { var endIndex2 = document.cookie.indexOf(";", startIndex2); if (endIndex2 == -1) endIndex2 = document.cookie.length; return unescape(document.cookie.substring(startIndex2+name2.length+1, endIndex2)); } else { return null; } } function PicRot2() { // get the counter. value = GetCookie("sandvik_smtPicRot2"); // if the value is null, set it to 0. if (value == null) value = 0; if (value > 5) value=0; // increment the counter. value++; // store the info on cookie (will expire in 30 days). SetCookie("sandvik_smtPicRot2", value, 250); // print out the result. switch (value) { case 1: url = ""; break; case 2: url = ""; break; case 3: url = ""; break; default: url = "" } document.writeln(""); } function goSearchSPS(theSearchPhrase) { if(theSearchPhrase==''){ location.href = 'http://domainsearch.sandvik.com/catalog.nsf/DomainQueryGroupEng?OpenForm'; } else{ location.href = 'http://domainsearch.sandvik.com/catalog.nsf/DomainQueryGroupEng?SearchDomain&Query=(('+theSearchPhrase+')%20AND%20SearchingBrandNameSandvik_Process_Systems%20AND%20(DocumentForPublishOnInternet%20OR%20DocumentInDomainSearch))&SearchOrder=&SearchMax=1000&SearchWV=TRUE&SearchThesaurus=FALSE&SearchFuzzy=FALSE&Start=1&Count=20&SearchEntry=DetailedResultEntry&Scope=1'; }} function DeleteCookie(name) { var expire = new Date (); expire.setTime (expire.getTime() - (24 * 60 * 60 * 1000)); document.cookie = name + "=; expires=" + expire.toGMTString(); } function goSearch(theSearchPhrase) { if(theSearchPhrase==''){ location.href = 'http://domainsearch.sandvik.com/catalog.nsf/DomainQueryGroupEng?OpenForm'; } else{ location.href = 'http://domainsearch.sandvik.com/catalog.nsf/DomainQueryGroupEng?SearchDomain&Query=(('+theSearchPhrase+')%20AND%20SearchingBrandNameSMT%20AND%20(DocumentForPublishOnInternet%20OR%20DocumentInDomainSearch))&SearchOrder=&SearchMax=1000&SearchWV=TRUE&SearchThesaurus=FALSE&SearchFuzzy=FALSE&Start=1&Count=20&SearchEntry=DetailedResultEntry&Scope=1'; } } function SetCookie2(name2, value2, days2) { var expire2 = new Date (); expire2.setTime (expire2.getTime() + (24 * 60 * 60 * 1000) * days2); document.cookie = name2 + "=" + escape2(value2) + "; expires=" + expire2.toGMTString(); }