//Custom JavaScript Functions by Shawn Olson //Copyright 2006-2008 //http://www.shawnolson.net //If you copy any functions from this page into your scripts, you must provide credit to Shawn Olson & http://www.shawnolson.net //******************************************* function stripCharacter(words,character) { //documentation for this script at http://www.shawnolson.net/a/499/ var spaces = words.length; for(var x = 1; x0){ theImg.width = newWidth; } if(newHeight>0){ theImg.height = newHeight; } } function changeColor(theObj,newColor){ eval('var theObject = document.getElementById("'+theObj+'")'); if(theObject.style.backgroundColor==null){theBG='white';}else{theBG=theObject.style.backgroundColor;} if(theObject.style.color==null){theColor='black';}else{theColor=theObject.style.color;} //alert(theObject.style.color+' '+theObject.style.backgroundColor); switch(theColor){ case newColor: switch(theBG){ case 'white': theObject.style.color = 'black'; break; case 'black': theObject.style.color = 'white'; break; default: theObject.style.color = 'black'; break; } break; default: theObject.style.color = newColor; break; } } //Below script added to prevent my work from being used //on websites that are not child-safe var restrictWords = new Array('free sex','amateurmatch.com','free porn'); function badSites(word){ //this function helps keep this script from being used on inappropriate websites var badword = false; var word = new String(word); word = word.toLowerCase(); for (var i = 0; i