// globale Variablen
var agt = navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie") != -1);
var ns = (navigator.appName.indexOf("Netscape") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);
var old,skn;
var iex = document.all;
var ns4 = document.layers;
var ns6 = document.getElementById&&!document.all;
var ie4 = document.all;
// show logo, if there is no R&S frame
function showLogo() {
htmlcode="
";
if (top.frames.length) {
document.write(htmlcode);
}
}
// cell rollover functions
function mover(cell, bgColor)
{
if (!cell.contains(event.fromElement))
{
cell.style.cursor = 'hand';
if (bgColor == null)
cell.bgColor = 'CC9900';
else
cell.bgColor = bgColor;
}
}
// cell rollover mouseout functions
function mout(cell, bgColor)
{
if (!cell.contains(event.toElement))
{
cell.style.cursor = 'default';
if (bgColor == null)
cell.bgColor = 'FCE698';
else
cell.bgColor = bgColor;
}
}
// cell rollover onClick functions
function mclick(cell)
{
if(event.srcElement.tagName=='TD')
{
cell.children.tags('A')[0].click();
}
}
// open a new window
function openWindow(url, wname, attrib) {
var f1 = null ;
if (attrib==null) attrib="width=500,height=480,dependent=true,titlebar=no,menubar=no,locationbar=no,resizable=yes,status=no";
f1 = window.open(url, wname, attrib);
}
// open a new window with variable size
function openSizedWindow(url, wname, width, height) {
var f1 = null ;
f1 = window.open(url, wname, "width=" + width + ",height=" + height + ",dependent=true,titlebar=no,menubar=no,locationbar=no,resizable=yes,status=no");
}
function openExtraSizedWindow (u,t,w,h,x,y) {
var f1 = null ;
if (u != null) {
if (t == null) t = document.title;
if (w == null) w = 500;
if (h == null) h = 515;
if (x == null) x = ""; else x = ",left=" + x;
if (y == null) y = ""; else y = ",top=" + y;
f1 = window.open(u, t, 'width=' + w + ',height=' + h + x + y + ',dependent=true,titlebar=no,menubar=no,locationbar=no,resizable=yes,status=no');
}
}
// load RS Frameset
function loadRSFrameset(navig, content, website) {
var loadIt = false;
if (website == "") {
website = "com";
}
if (top.frames.length < 1) {
if ((navig.indexOf("/www/dev_center.nsf/html/") == 0) && content != "") {
var newURL = '/frameset/' + website + '/' + navig.substring(25, navig.length) + content
} else {
var newURL = '/www/dev_center.nsf/frameset?OpenAgent';
if (website) newURL = newURL + '&website=' + website;
if (navig) newURL = newURL + '&navig=' + navig;
if (content) newURL = newURL + '&content=' + content;
}
loadIt = true;
}
if (loadIt) top.location.replace(newURL);
}
// load RS Frameset 2004
function loadRSFrameset2004(navig, content, website) {
var loadIt = false;
var newURL = '/www/dev_center.nsf/frameset2004?OpenAgent';
if (website) newURL = newURL + '&website=' + website;
if (navig) newURL = newURL + '&navig=' + navig;
if (content) newURL = newURL + '&content=' + content;
if (top.frames.length < 1) {
loadIt = true;
}
if (loadIt) top.location.replace(newURL);
}
// load frameset
function loadFrameset(navig, content) {
// loadRSFrameset(navig, content, "com");
var loadIt = false;
if (top.frames.length < 1) {
loadIt = true;
}
if (loadIt) top.location.replace('/www/dev_center.nsf/dynframe?OpenAgent&navig=' + navig + '&content=' + content);
}
function MM_findObj(n, d) {
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))\n');
if (result) return name+','; else return '';
}
function detectNS(ClassID,name) {
n = "";
if (nse.indexOf(ClassID) != -1) if (navigator.mimeTypes[ClassID].enabledPlugin != null) n = name+","; return n;
}
if (ie && win) {
pluginlist = detectIE("Adobe.SVGCtl","SVG Viewer") + detectIE("SWCtl.SWCtl.1","Shockwave Director") + detectIE("ShockwaveFlash.ShockwaveFlash.1","Shockwave Flash") + detectIE("rmocx.RealPlayer G2 Control.1","RealPlayer") + detectIE("QuickTimeCheckObject.QuickTimeCheck.1","QuickTime") + detectIE("MediaPlayer.MediaPlayer.1","Windows Media Player") + detectIE("PDF.PdfCtrl.5","Acrobat Reader");
}
if (ns || !win) {
nse = ""; for (var i=0;i 0) pluginlist = pluginlist.substring(0,pluginlist.length-1);
return (pluginlist.indexOf(theplugin)!=-1);
}
function loadpopupvars() {
Xoffset=-60; // modify these values to ...
Yoffset= 20; // change the popup position.
yyy=-1000;
if (ns4) {
skn=document.dek;
} else if (ns6) {
skn=document.getElementById("dek").style;
} else if (ie4) {
skn=document.all.dek.style;
}
if(ns4) {
document.captureEvents(Event.MOUSEMOVE);
} else {
skn.visibility="visible"
skn.display="none"
}
document.onmousemove=get_mouse;
}
function popup(msg,bak,mywidth){
if (!mywidth) mywidth = 200;
if (!skn) loadpopupvars();
if (ns4) {
if (bak) {
otherbg = " bgcolor=\"" + bak + "\"";
} else {
otherbg = "";
}
var content="";
} else {
if (bak) {
otherbg = " style=\"background: " + bak + ";\"";
} else {
otherbg = "";
}
var content="";
}
yyy=Yoffset;
if(ns4){skn.document.write(content);skn.document.close();skn.visibility="visible"}
if(ns6){document.getElementById("dek").innerHTML=content;skn.display=''}
if(ie4){document.all("dek").innerHTML=content;skn.display=''}
}
function get_mouse(e){
var x=(ns4||ns6)?e.pageX:event.x+document.body.scrollLeft;
skn.left=x+Xoffset;
var y=(ns4||ns6)?e.pageY:event.y+document.body.scrollTop;
skn.top=y+yyy;
}
function kill(){
yyy=-1000;
if(ns4) {
skn.visibility="hidden";
} else if (ns6||ie4) {
skn.display="none";
}
}
// variable with cookie name for shop
var shopcn = "RSShop";
var shopvisible = true;
var configuratorcn = "RSConfigurator";
var configuratorvisible = true;
// get cookie value
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
// set a cookie
function SetCookie(name,value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
// get cookie
function GetCookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg) {
return getCookieVal (j);
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function DeleteCookie(name) {
var expdate = new Date();
expdate.setTime(expdate.getTime() - 1);
var cookieval = GetCookie(name);
if (cookieval != null) {
SetCookie(name,"1",expdate);
}
}
var today = new Date();
var zero_date = new Date(0,0,0);
today.setTime(today.getTime() - zero_date.getTime());
var cookie_expire_date = new Date(today.getTime() + (8 * 7 * 86400000));
/*
save form field values in cookies
Example: