
function AddColor(Text,Color) {
  Color = Color.toUpperCase();
  document.writeln('<OPTION STYLE="Background: #'+Color+ '" VALUE="' +Color+ '">' +Text+ '</OPTION>');
}
function ColorList(Object) {
  document.writeln('<SELECT NAME="'+Object+ '" ID="' +Object+ '">');
  document.writeln('<OPTION VALUE="" SELECTED>&lt;color&gt;</OPTION>');
  AddColor("Alice Blue","f0f8ff");
  AddColor("Antique White","faebd7");
  AddColor("Aqua Marine","7fffd4");
  AddColor("Aqua","00ffff");
  AddColor("Azure","f0ffff");
  AddColor("Beige","f5f5dc");
  AddColor("Bisque","ffe4c4");
  AddColor("Black","000000");
  AddColor("Blanched Almond","ffebcd");
  AddColor("Blue Violet","8a2be2");
  AddColor("Blue","0000ff");
  AddColor("Brown","a52a2a");
  AddColor("Burly Wood","deb887");
  AddColor("Cadet Blue","5f9ea0");
  AddColor("Chartreuse","7fff00");
  AddColor("Chocolate","d2691e");
  AddColor("Coral","ff7f50");
  AddColor("Corn Flower Blue","6495ed");
  AddColor("Corn Silk","fff8dc");
  AddColor("Crimson","dc143c");
  AddColor("Cyan","00ffff");
  AddColor("Dark Blue","00008b");
  AddColor("Dark Cyan","008b8b");
  AddColor("Dark Golden Rod","b8860b");
  AddColor("Dark Gray","a9a9a9");
  AddColor("Dark Green","006400");
  AddColor("Dark Khaki","bdb76b");
  AddColor("Dark Magenta","8b008b");
  AddColor("Dark Olive Green","556b2f");
  AddColor("Dark Orange","ff8c00");
  AddColor("Dark Orchid","9932cc");
  AddColor("Dark Red","8b0000");
  AddColor("Dark Salmon","e9967a");
  AddColor("Dark Sea Green","8fbc8f");
  AddColor("Dark Slate Blue","483d8b");
  AddColor("Dark Slate Gray","2f4f4f");
  AddColor("Dark Turquoise","00ced1");
  AddColor("Dark Violet","9400d3");
  AddColor("Deep Pink","ff1493");
  AddColor("Deep Sky Blue","00bfff");
  AddColor("Dim Gray","696969");
  AddColor("Dodger Blue","1e90ff");
  AddColor("Fire Brick","b22222");
  AddColor("Floral White","fffaf0");
  AddColor("Forest Green","228b22");
  AddColor("Fuchsia","ff00ff");
  AddColor("Gainsboro","dcdcdc");
  AddColor("Ghost White","f8f8ff");
  AddColor("Gold","ffd700");
  AddColor("Golden Rod","daa520");
  AddColor("Gray","808080");
  AddColor("Green","008000");
  AddColor("Green Yellow","adff2f");
  AddColor("Honey Dew","f0fff0");
  AddColor("Hot Pink","ff69b4");
  AddColor("Indian Red","cd5c5c");
  AddColor("Indigo","4b0082");
  AddColor("Ivory","fffff0");
  AddColor("Khaki","f0e68c");
  AddColor("Lavender","e6e6fa");
  AddColor("Lavender Blush","fff0f5");
  AddColor("Lawn Green","7cfc00");
  AddColor("Lemon Chiffon","fffacd");
  AddColor("Light Blue","add8e6");
  AddColor("Light Coral","f08080");
  AddColor("Light Cyan","e0ffff");
  AddColor("Light Golden Rod Y.","fafad2");
  AddColor("Light Green","90ee90");
  AddColor("Light Grey","d3d3d3");
  AddColor("Light Pink","ffb6c1");
  AddColor("Light Salmon","ffa07a");
  AddColor("Light Sea Green","20b2aa");
  AddColor("Light Sky Blue","87cefa");
  AddColor("Light Slate Gray","778899");
  AddColor("Light Steel Blue","b0c4de");
  AddColor("Light Yellow","ffffe0");
  AddColor("Lime","00ff00");
  AddColor("Lime Green","32cd32");
  AddColor("Linen","faf0e6");
  AddColor("Magenta","ff00ff");
  AddColor("Maroon","800000");
  AddColor("Medium Aqua Marine","66cdaa");
  AddColor("Medium Blue","0000cd");
  AddColor("Medium Orchid","ba55d3");
  AddColor("Medium Purple","9370db");
  AddColor("Medium Sea Green","3cb371");
  AddColor("Medium Slate Blue","7b68ee");
  AddColor("Medium Spring Green","00fa9a");
  AddColor("Medium Turquoise","48d1cc");
  AddColor("Medium Violet Red","c71585");
  AddColor("Midnight Blue","191970");
  AddColor("Mint Cream","f5fffa");
  AddColor("Misty Rose","ffe4e1");
  AddColor("Moccasin","ffe4b5");
  AddColor("Navajo White","ffdead");
  AddColor("Navy","000080");
  AddColor("Old Lace","fdf5e6");
  AddColor("Olive","808000");
  AddColor("Olive Drab","6b8e23");
  AddColor("Orange","ffa500");
  AddColor("Orange Red","ff4500");
  AddColor("Orchid","da70d6");
  AddColor("Pale Golden Rod","eee8aa");
  AddColor("Pale Green","98fb98");
  AddColor("Pale Turquoise","afeeee");
  AddColor("Pale Violet Red","db7093");
  AddColor("Papaya Whip","ffefd5");
  AddColor("Peach Puff","ffdab9");
  AddColor("Peru","cd853f");
  AddColor("Pink","ffc0cb");
  AddColor("Plum","dda0dd");
  AddColor("Powder Blue","b0e0e6");
  AddColor("Purple","800080");
  AddColor("Red","ff0000");
  AddColor("Rosy Brown","bc8f8f");
  AddColor("Royal Blue","4169e1");
  AddColor("Saddle Brown","8b4513");
  AddColor("Salmon","fa8072");
  AddColor("Sandy Brown","f4a460");
  AddColor("Sea Green","2e8b57");
  AddColor("Sea Shell","fff5ee");
  AddColor("Sienna","a0522d");
  AddColor("Silver","c0c0c0");
  AddColor("Sky Blue","87ceeb");
  AddColor("Slate Blue","6a5acd");
  AddColor("Slate Gray","708090");
  AddColor("Snow","fffafa");
  AddColor("Spring Green","00ff7f");
  AddColor("Steel Blue","4682b4");
  AddColor("Tan","d2b48c");
  AddColor("Teal","008080");
  AddColor("Thistle","d8bfd8");
  AddColor("Tomato","ff6347");
  AddColor("Turquoise","40e0d0");
  AddColor("Violet","ee82ee");
  AddColor("Wheat","f5deb3");
  AddColor("White","ffffff");
  AddColor("White Smoke","f5f5f5");
  AddColor("Yellow","ffff00");
  AddColor("Yellow Green","9acd32");
  document.writeln('</SELECT>');
}
function AddSeperator(Text, Val) {
  document.writeln('<OPTION " VALUE="' +Val+ '">' +Text+ '</OPTION>');
}

function SeperatorList(Object) {
  document.writeln('<SELECT NAME="' +Object+ '" ID="' +Object+ '" >');
  document.writeln('<OPTION VALUE="&amp;curren;" SELECTED>&curren;</OPTION>');
  AddSeperator("&dagger;", 'dagger;');
  AddSeperator("&cent;",'cent;');
  AddSeperator("&para;","para;");
  AddSeperator("&Dagger;","Dagger;");
  AddSeperator("&loz;","loz;");
  AddSeperator("&spades;" ,"spades;");
  AddSeperator("&clubs;" ,"clubs;");
  AddSeperator("&hearts;" ,"hearts;");
  AddSeperator("&diams;" ,"diams;");
  AddSeperator("&brvbar;" ,"brvbar;");
  AddSeperator("&tilde;", "tilde;");
  AddSeperator("&Iota;", "Iota;");
  AddSeperator("&shy;", "shy;");
  document.writeln('</SELECT>');
}

function AddFont(Text) {
  document.writeln('<OPTION " VALUE="' +Text+ '">' +Text+ '</OPTION>');
}

function FontList(Object) {
  document.writeln('<SELECT NAME="' +Object+ '" ID="' +Object+ '" >');
  document.writeln('<OPTION VALUE="" SELECTED>&lt;font type&gt;</OPTION>');
  AddFont("arial");
  AddFont("arial black");
  AddFont("comic sans ms");
  AddFont("courier new");
  AddFont("georgia");
  AddFont("helvetica");
  AddFont("impact");
  AddFont("tahoma");
  AddFont("times new roman");
  AddFont("verdana");
  AddFont("webdings");
  document.writeln('</SELECT>');
}
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Husay :: http://www.communitxt.net */
var arrLinkInput = new Array(0);
  var arrLinkInputValue = new Array(0);
var arrTitleInput = new Array(0);
  var arrTitleInputValue = new Array(0);

function addInput() {
  //arrLinkInput.push(createInput(arrLinkInput.length));
  arrLinkInput.push(arrLinkInput.length);
  //arrLinkInputValue.push(arrLinkInputValue.length);
  arrLinkInputValue.push("");
  arrTitleInput.push(arrTitleInput.length);
  arrTitleInputValue.push("");
  display();
}

function display() {
  document.getElementById('paraL').innerHTML="";
  document.getElementById('paraT').innerHTML="";
  for (intI=0;intI<arrLinkInput.length;intI++) {
    document.getElementById('paraL').innerHTML+=createLinkInput(arrLinkInput[intI], arrLinkInputValue[intI]);
    document.getElementById('paraT').innerHTML+=createTitleInput(arrTitleInput[intI], arrTitleInputValue[intI]);
  }
}
function saveLinkValue(intId,strLinkValue) {
  arrLinkInputValue[intId]=strLinkValue;
document.getElementById('arrLinkJava').value = js_array_to_php_array (arrLinkInputValue);
}  
function saveTitleValue(intId,strTitleValue) {
  arrTitleInputValue[intId]=strTitleValue;
  document.getElementById('arrTitleJava').value = js_array_to_php_array (arrTitleInputValue);
}  
function createTitleInput(id,value) {
  return 2+id+". &nbsp;<input type='text' size=25 name='Text[]' onChange='javascript:saveTitleValue("+ id +",this.value)' value='"+ value +"'><br><br>";
  
}
function createLinkInput(id,value) {

  return 2+id+". &nbsp;<input type='text' size=25 name='Url[]' onChange='javascript:saveLinkValue("+ id +",this.value)' value='"+ value +"'><br><br>";
}

function deleteInput() {
  if (arrLinkInput.length > 0) { 
     arrLinkInput.pop(); 
     arrLinkInputValue.pop();
     arrTitleInput.pop(); 
     arrTitleInputValue.pop();
  }
  display(); 
}

// End -->
