function clipboard(d) { var doc = eval("document.readme."+d); cp = doc.createTextRange(); doc.focus(); doc.select(); cp.execCommand("Copy"); } function checkRegister(myForm){ iserror = false; errormsg = "Please enter correct values into these fields:\n"; if(myForm.elements['username'].value.length <1){ iserror = true; errormsg += "- Username (max. 10 chars)\n"; } if(myForm.elements['username'].value.length > 10){ iserror = true; errormsg += "- Username (max. 10 chars)\n"; } if(myForm.elements['passwrd'].value.length < 1){ iserror = true; errormsg += "- Password\n"; } if(myForm.elements['email'].value.length < 1){ iserror = true; errormsg += "- Email\n"; } if(!iserror){ myForm.submit(); }else{ alert(errormsg); } } function checkSearch(myForm){ iserror = false; errormsg = "Please enter correct values into these fields:\n"; if(myForm.elements['searchfield'].value.length <1){ iserror = true; errormsg += "- Search\n"; } if(!iserror){ myForm.submit(); }else{ alert(errormsg); } } function high(which2){ theobject=which2 highlighting=setInterval("highlightit(theobject)",20) } function low(which2){ clearInterval(highlighting) which2.filters.alpha.opacity = 70 } function highlightit(cur2){ if (cur2.filters.alpha.opacity<100) cur2.filters.alpha.opacity+=5 else if (window.highlighting) clearInterval(highlighting) } function NewImage(name,newimage){ // function: change image // returns : nothing // note : var img = document.images[name]; var i; var newSrc = ""; var newPath = ""; var newName = ""; // get image source var image = img.src; // extract filename var path = image.split("/"); // build filepath minus filename for(i=0;i<(path.length-1);i++){ newPath += path[i]+"/"; } // build new filename newName = newimage; // concat filepath and filename newSrc = newPath+newName; // change image source img.src = newSrc; } function winpop(myUrl,myWidth,myHeight,myName){ var myWinName = (arguments.length > 3) ? myName :'noname'; //var macAdd = (navigator.platform.indexOf("Mac")!= -1 || navigator.userAgent.indexOf('Opera')!= -1)?0:0; //var macNetscapeAdd = ((navigator.platform.indexOf("Mac")!= -1) && (document.layers))?50:0; //var winWidth = myWidth +macAdd; //var winHeight = myHeight +macNetscapeAdd; //var myX = (screen.availWidth/2) - (winWidth/2); //var myY = (screen.availHeight/2) - (winHeight/2); var myWin = window.open(myUrl,myWinName,'width='+myWidth+',height='+myHeight+',toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0'); //myWin.moveTo(myX,myY); } function isValid(email){ var exclude=/[^@\-\.\w]|^[_@\.\-]|[\._\-]{2}|[@\.]{2}|(@)[^@]*\1/; var check=/@[\w\-]+\./; var checkend=/\.[a-zA-Z]{2,3}$/; if(((email.search(exclude) != -1)||(email.search(check)) == -1)||(email.search(checkend) == -1)){ return false; } else { return true; } } function checkMobNr(nr,type){ var check_mobile = /^[489]/; var check_phone = /^[23567]/; var temp; var temp2 = ''; temp = nr.split(' '); for(var i=0;i 2){ // build new filename newName = imgname[0]+"_"+imgname[1]+".gif"; // concat filepath and filename newSrc = newPath+newName; // change image source img.src = newSrc; } // if image is in 'normal' state change to 'over' state else{ // extract image number temp = imgname[1].split("."); // build new filename newName = imgname[0]+"_"+temp[0]+"_over.gif"; // concat filepath and filename newSrc = newPath+newName; // change image source img.src = newSrc; } } }