﻿


function changeURL(strURLPart,iURLPos)
{
    //alert(document.getElementById("baseURL").value);
    var aURLs = document.getElementById("baseURL").value.split('/');
    aURLs[iURLPos] = strURLPart;    
    document.location.href = aURLs.join("/");
}



function cmd(action,options,instance)
{
    var selection       = document.selection.createRange();
    var selectedText    = document.selection.createRange().text;
    switch(action)
    { 
	case 'save'           : save(); break;          	
	default               : selection.execCommand(action,"",options);
    }   
}


function save()
{
try 
{
document.getElementById('Save').click();
}
catch(er)
{
alert("Unable to Save this docuemnt using this button - look for a submit button on the page!");
}
return;
}


