function cfWindowCreate(Ereignis,layoutType,myRecordId) { myWidth = 500; myHeight = 165; if (!Ereignis) var Ereignis = window.event; //alert(Ereignis.type); myDirection="left"; if (Ereignis.pageX) { //alert('FF'); myx = Ereignis.pageX; if (myx-myWidth > 0) { myx = myx-myWidth; myDirection="right"; } myy = Ereignis.pageY; if (myy-myHeight > 0) { myy = myy-myHeight; } else { myy = 0; } } else if (Ereignis.clientY) { //alert('IE'); myx = Ereignis.clientX; if (myx-myWidth > 0) { myx = myx-myWidth+document.documentElement.scrollLeft; myDirection="right"; } myy = Ereignis.clientY; if (myy-myHeight > 0) { myy = myy-myHeight+document.documentElement.scrollTop; } else { myy = 0; } } else { myx = 100; myy = 100; myDirection="right"; } if (layoutType == 'glossarEinleitung') { var windowOptions = new Object(); windowOptions.x=myx; windowOptions.y=myy; windowOptions.height=myHeight+1; windowOptions.draggable=false; windowOptions.resizable=false; windowOptions.initshow=true; windowOptions.closable=true; windowOptions.bodystyle = 'background: none;'; } myWindowId = Math.random().toString().substring(5, 10); if (typeof(myArray) == 'undefined') { myArray = new Array(); myTempLength = myArray.length; myArray[myArray.length] = 'cfWindow_' + myWindowId + '_' +layoutType + '_' + myRecordId; } else { myTempLength = myArray.length; myArray[myArray.length] = 'cfWindow_' + myWindowId + '_' +layoutType + '_' + myRecordId; } for (i=0; i= 0x2B && n <= 0x3A) { dec+=cms_decryptCharcode(n, 0x2B, 0x3A, offset); } else if (n >= 0x40 && n <= 0x5A) { dec+=cms_decryptCharcode(n, 0x40, 0x5A, offset); } else if (n >= 0x61 && n <= 0x7A) { dec+=cms_decryptCharcode(n, 0x61, 0x7A, offset); } else { dec+=s.charAt(i); } } return dec; } function cms_decryptCharcode(n,start,end,offset) { n=n+offset; if (offset > 0 && n > end) { n=start+(n-end-1); } else if (offset < 0 && n < start) { n=end-(start-n-1); } return String.fromCharCode(n); } function parseCookie(myCookie) { var myVariables = myCookie.split(";"); var returnvalue = new Array(); for(var i = 0; i <= myVariables.length; i++) { if (myVariables[i]) { thisValues = myVariables[i].split("="); thisVar = trim(thisValues[0].toLowerCase()); thisVal = trim(thisValues[1]); returnvalue[thisVar]= thisVal; } } return returnvalue; } var ccErrorNo = 0; var ccErrors = new Array () ccErrors [0] = "Unknown card type"; ccErrors [1] = "No card number provided"; ccErrors [2] = "Credit card number is in invalid format"; ccErrors [3] = "Credit card number is invalid"; ccErrors [4] = "Credit card number has an inappropriate number of digits"; function checkCreditCard (cardnumber, cardname) { // Array to hold the permitted card characteristics var cards = new Array(); // Define the cards we support. You may add addtional card types. // Name: As in the selection box of the form - must be same as user's // Length: List of possible valid lengths of the card number for the card // prefixes: List of possible prefixes for the card // checkdigit Boolean to say whether there is a check digit cards [0] = {name: "Visa", length: "13,16", prefixes: "4", checkdigit: true}; cards [1] = {name: "MasterCard", length: "16", prefixes: "51,52,53,54,55", checkdigit: true}; cards [2] = {name: "DinersClub", length: "14,16", prefixes: "300,301,302,303,304,305,36,38,55", checkdigit: true}; cards [3] = {name: "CarteBlanche", length: "14", prefixes: "300,301,302,303,304,305,36,38", checkdigit: true}; cards [4] = {name: "AmEx", length: "15", prefixes: "34,37", checkdigit: true}; cards [5] = {name: "Discover", length: "16", prefixes: "6011,650", checkdigit: true}; cards [6] = {name: "JCB", length: "15,16", prefixes: "3,1800,2131", checkdigit: true}; cards [7] = {name: "enRoute", length: "15", prefixes: "2014,2149", checkdigit: true}; cards [8] = {name: "Solo", length: "16,18,19", prefixes: "6334, 6767", checkdigit: true}; cards [9] = {name: "Switch", length: "16,18,19", prefixes: "4903,4905,4911,4936,564182,633110,6333,6759", checkdigit: true}; cards [10] = {name: "Maestro", length: "16", prefixes: "5020,6", checkdigit: true}; cards [11] = {name: "VisaElectron", length: "16", prefixes: "417500,4917,4913", checkdigit: true}; // Establish card type var cardType = -1; for (var i=0; i= 0; i--) { // Extract the next digit and multiply by 1 or 2 on alternative digits. calc = Number(cardNo.charAt(i)) * j; // If the result is in two digits add 1 to the checksum total if (calc > 9) { checksum = checksum + 1; calc = calc - 10; } // Add the units element to the checksum total checksum = checksum + calc; // Switch the value of j if (j ==1) {j = 2} else {j = 1}; } // All done - if checksum is divisible by 10, it is a valid modulus 10. // If not, report an error. if (checksum % 10 != 0) { ccErrorNo = 3; return false; } } // The following are the card-specific checks we undertake. var LengthValid = false; var PrefixValid = false; var undefined; // We use these for holding the valid lengths and prefixes of a card type var prefix = new Array (); var lengths = new Array (); // Load an array with the valid prefixes for this card prefix = cards[cardType].prefixes.split(","); // Now see if any of them match what we have in the card number for (i=0; i 0) { try { parent.frames.pageinfo.location.href="/admin/cms/modCms.cfm?action=pageinfo&page=" + pageId; parent.frames.footer.location.href="/cms/cmsAdmin/system/openEditModeElementFooter.cfm?page=" + pageId; } catch (e) {} } } function updateWMTT(e) { try { x=(document.all) ? window.event.x + document.documentElement.scrollLeft + document.getElementsByTagName("div")[1].scrollLeft: e.pageX; y=(document.all) ? window.event.y + document.documentElement.scrollTop + document.getElementsByTagName("div")[1].scrollTop: e.pageY; if (wmtt != null) { wmtt.style.left=(x - 150) + "px"; wmtt.style.top=(y + 20) + "px"; } } catch(e) { } } function showTT(id) { wmtt=document.getElementById(id); wmtt.style.display="block" } function hideTT() { wmtt.style.display="none"; } function cms_showpic(file,width,height,scrollbar) { var scroll = "no"; if(!cms_showpic.arguments[1]) { width=""; } if(!cms_showpic.arguments[2]) { height=""; } if(cms_showpic.arguments[1] || cms_showpic.arguments[2]) { scroll="yes"; } //Scrollbars "yes" OR "no" if(cms_showpic.arguments[3]) { var scroll = scrollbar; } //Bildgrösse bekannt lenWidth = width.replace(/\r/g, " "); lenHeight = height.replace(/\r/g, " "); //Bildpfad speichern path = "http://www.brother.es/cms/cmsAdmin/modules/popup.cfm?picfile="+escape(file); //Breite und Höhe wird übergeben, sofern vorhanden if (lenWidth != '' && lenHeight != '') { path = path+"&width="+width+"&height="+height; } var picwindow=window.open(path, "picwindow", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=yes,top=50,left=50"); picwindow.focus(); } function trim(item) { return item.replace(/^\s*(\b.*\b|)\s*$/, '$1'); } function isdate(datum) { date = trim(datum); if (date.length > 0) { if (date.search(/\d\d.\d\d.\d\d/) != -1 || date.search(/\d\d.\d\d.\d\d\d\d/) != -1 || date.search(/\d.\d.\d\d/) != -1 || date.search(/\d.\d.\d\d\d\d/) != -1 || date.search(/\d\d.\d.\d\d/) != -1 || date.search(/\d\d.\d.\d\d\d\d/) != -1 || date.search(/\d.\d\d.\d\d/) != -1 || date.search(/\d.\d\d.\d\d\d\d/) != -1) { dDate = new Date(); iYear = dDate.getFullYear(); if (iYear == "2000") { isLeapyear = false; } else { leapyear = iYear / 4; calc = 4 * leapyear; if (calc == iYear) { isLeapyear = true; } else { isLeapyear = false; } } aDate = date.split("."); iMonth = 1 * aDate[1]; iDay = 1 * aDate[0]; switch(iMonth) { case 1: iDayCount = 31; break; case 2: if (isLeapyear == true) { iDayCount = 29; } else { iDayCount = 28; } break; case 3: iDayCount = 31; break; case 4: iDayCount = 30; break; case 5: iDayCount = 31; break; case 6: iDayCount = 30; break; case 7: iDayCount = 31; break; case 8: iDayCount = 31; break; case 9: iDayCount = 30; break; case 10: iDayCount = 31; break; case 11: iDayCount = 30; break; case 12: iDayCount = 31; break; } if (iDay >= 1 && iDay <= iDayCount) { return true; } else { return false; } } else { return false; } } else { return false; } } function ismail(mail) { var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (filter.test(mail)) { return true; } else { return false; } } function cms_reload() { location.reload(); } function cms_popup(Ziel,Breite,Hoehe,Status,Toolbar,Location,Menu) { popup=window.open(Ziel,"PopUp","status=" + Status + ",toolbar=" + Toolbar + ",location=" + Location + ",menu=" + Menu + ",width=" + Breite + ",height=" + Hoehe + ",left=" + (screen.width - Breite) / 2 + ",top=" + (screen.height - Hoehe) / 2); popup.focus(); } function cm_bwcheck(){ this.ver=navigator.appVersion this.agent=navigator.userAgent.toLowerCase() this.dom=document.getElementById?1:0 this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) && window.opera this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) && window.opera this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6) this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1) this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6) this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6) this.ie = (this.ie4 || this.ie5 || this.ie6) this.mac=(this.agent.indexOf("mac")>-1) this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar) this.ns4=(!this.dom && document.layers)?1:0; this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6) this.usedom= this.ns6//Use dom creation this.reuse = this.ie||this.usedom //Reuse layers this.px=this.dom&&!this.op5?"px":"" return this } var bw=new cm_bwcheck(); actStatus=0; function setStatus(s) { if(s==0) { actStatus=0; javascript:window.setTimeout("toggleSelect('10','10','10','10')",1000); } if(s==1) { actStatus=1; javascript:toggleSelect('10','10','10','10'); } } function toggleSelect(x,y,w,h) { var appVer = navigator.appVersion.toLowerCase(); var iePos = appVer.indexOf('msie'); if (iePos !=-1) { var is_minor = parseFloat(appVer.substring(iePos+5,appVer.indexOf(';',iePos))); var is_major = parseInt(is_minor); } if (navigator.appName.substring(0,9) == "Microsoft") { // Check if IE version is 6 or older if (is_major <= 6) { var selx,sely,selw,selh,i var sel=document.getElementsByTagName("SELECT") for(i=0;ix && selxy && sely= 0; FlyLyr.on = 1; var ua = navigator.userAgent; FlyLyr.isOpera = ua.indexOf (' Opera ') >= 0; FlyLyr.isKonq = ua.indexOf (' Konqueror') >= 0; initFlyLyr (); initDelay (); d.write ('