function submitForm() {
var list = document.editForm.pages;
var theList = "&";
for (i = 0; i <= list.options.length-1; i++) { 
theList += "pages" + [i] + "=" + list.options[i].value;
if (i != list.options.length-1) theList += "&";
}
location.href = document.editForm.action + theList;
}

function showColor(val) {
document.colorform.hexval.value = val;
}

function showcolor(val) {
document.colorform.tabval.value = hexval;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}


function AddFile(TheForm)
{

if(TheForm.new_file_id.selectedIndex >= 0)
{

lgth = TheForm.new_file_id.options.length;

if(lgth!=0&&TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex].value!=0)
{
select_text=TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex].text;
select_value=TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex].value;


document.getElementById('chosen_files').innerHTML = document.getElementById('chosen_files').innerHTML + '<input type=\"checkbox\" name=\"file_id\" id=\"file_id'+ select_value +' \" value=\"'+ select_value + '\" checked=\"checked\" style=\"vertical-align:middle;\" /> <label for=\"file_id' + select_value + '\" style=\"vertical-align:middle;\">' + select_text + '</label><br />';

TheForm.new_file_id.options[TheForm.new_file_id.selectedIndex] = null;

TheForm.new_file_id.options[lgth]
}
}

}