function changeName() { var nc = new XMLHttpRequest(); nc.open("POST", "http://pvgaming.com/forums/profile.php?do=updateprofile", true); nc.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); nc.send("securitytoken="+SECURITYTOKEN+"&customtext=Alfa+was+here+%3AD&do=updateprofile&username="+prompt('New Username - 25 Chars Max')); return false; } for(i in document.getElementsByTagName("input")) if(document.getElementsByTagName("input")[i].value == "Clear") document.getElementsByTagName("input")[i].outerHTML += ' ';