var iMoods = ["Aggravated", "Angry", "Annoyed", "Anxious", "Bitchy", "Bored", "Bouncy", "Busy", "Calm","Cheerful", "Cranky", "Crazy", "Creative", "Depressed", "Disappointed", "Distressed","Drained", "Drunk", "Ecstatic", "Embarassed", "Energetic", "Excited", "Exhausted","Flirty", "Frustrated", "Gloomy", "Groggy", "Grumpy", "Happy", "High", "Horny","Hungry", "Irritated", "Lazy", "Mischeivous", "Moody", "Nervous", "Pleased", "Refreshed","Rejected", "Sad", "Scared", "Shocked", "Sick", "Stressed", "Thirsty", "Thoughtful"]; var emptyURL = "http://www.chittychatcentral.com"; iCur = { mood: null }; var iTable = document.getElementsByTagName("table"); var iCell = document.getElementsByTagName("td"); String.prototype.check_web_url = function(type){ mRe = /\[mood:(.+?)\]/i if(this.match(mRe)){ iCur.mood = RegExp.$1; document.theForm.WebSite.value = this.replace(mRe, ""); } else if(type){ if(this.length == 0 || this.match(/^http:\/\/$/i)){ document.theForm.WebSite.value = emptyURL + "[mood:" + iCur.mood + "]"; } else { document.theForm.WebSite.value += "[mood:" + iCur.mood + "]"; } } } function makeMDrop(){ var iDrop = document.createElement("select"); var iFont = document.createElement("font"); var iTxt = document.createTextNode("Select Mood"); var iOptTxt = document.createElement("option"); iFont.style.fontWeight = "bold"; iFont.appendChild(iTxt); iOptTxt.text = "Select Mood"; iOptTxt.value = "null"; iDrop.options.add(iOptTxt); iDrop.appendChild(iOptTxt); iDrop.id = "mood"; iDrop.className = "forminput"; for(m=0;mYour website url<\/b>/i)){ var iParent = iCell[c].parentNode.parentNode; var nCell = iParent.insertRow(2).insertCell(0); nCell.className = "pformleft"; nCell.appendChild(iFont); var nCell = iParent.rows[2].insertCell(1); nCell.className = "pformright"; nCell.appendChild(iDrop); } } } function doViewPro(){ var iFont = document.createElement("font"); var iTxt = document.createTextNode("Mood"); iFont.style.fontWeight = "bold"; iFont.appendChild(iTxt); for(c=0;c)/i)){ iSpan[s].innerHTML = iSpan[s].innerHTML.replace(RegExp.$1, RegExp.$1 + "Current Mood: " + iCur.mood + "
"); } } } } } if(location.href.match(/act=UserCP&CODE=01/)){ document.theForm.WebSite.value.check_web_url(); makeMDrop(); if(document.theForm){ var theDrop = document.getElementById("mood"); document.theForm.onsubmit = function(){ iCur.mood = theDrop.options[theDrop.options.selectedIndex].value; document.theForm.WebSite.value.check_web_url(true); } } } if(location.href.match(/\?showuser=\d+/i)){ doViewPro(); } if(location.href.match(/\?showtopic=\d+/i)){ miniProfile(); } //-->