var color;
var formObj;
function boldText(obj) {
obj.value = obj.value+''+prompt("Enter the text to bold:", "")+'';
}
function centerText(obj) {
obj.value = obj.value+'
'+prompt("Enter the text to center:", "")+'
';
}
function colorText(obj) {
formObj = obj;
window.open("/extras/colorPicker.html","colorPicker","width=438,height=258");
}
function copyright(obj) {
obj.value = obj.value+'©';
}
function email(obj) {
var email = prompt("Enter the Email address:", "");
obj.value = obj.value+''+email+'';
}
function getShowMeText() {
return formObj.value;
}
function imageAdd(obj) {
obj.value = obj.value+'
';
}
function italicText(obj) {
obj.value = obj.value+''+prompt("Enter the text to italicize:", "")+'';
}
function list(obj) {
var item;
obj.value = obj.value+'';
obj.value = obj.value+'- '+prompt("Enter the first item in the list:", "");
while (item = prompt("Enter the next item in the list (cancel when done):", "")) {
obj.value = obj.value+'
- '+item;
}
obj.value = obj.value+'
';
}
function registered(obj) {
obj.value = obj.value+'®';
}
function setColor(remoteColor) {
formObj.value = formObj.value+''+prompt("Enter the text to color:","")+'';
}
function showMe(obj) {
formObj = obj;
window.open("/extras/viewer.html","showMeViewer","width=500,height=300,scrollbars=1");
}
function trademark(obj) {
obj.value = obj.value+'TM';
}
function url(obj) {
obj.value = obj.value+''+prompt("Enter the title of the link:", "Google")+'';
}