var replaceText = "http://twitter.com/YourLink";

function inputBox() {
	var twitterID = document.getElementById('twitterID');
	if(twitterID.value=="Your ID"){ 
		twitterID.value = "";
	}
}

function updateTwitterCode(){
	var theForm = document.forms[0];
	var twitterID = "http://twitter.com/"+document.getElementById('twitterID').value;
	for(i=0; i<theForm.elements.length; i++){
		if(theForm.elements[i].type=="textarea"){
			theForm.elements[i].value = theForm.elements[i].value.replace(replaceText,twitterID);
		}
	}
	replaceText = twitterID;
}

function noenter() {
	if(window.event.keyCode==13){
		updateTwitterCode();
		window.event.keyCode =0;
	}
	return !(window.event && window.event.keyCode == 13); 
}

function copyText(theId) {
   var obj=document.getElementById(theId);
   obj.focus();
   obj.select();
   copyIntoClipboard(obj.value);
}


