function urlInflector() {
var str = $("#txtURL").val();
if(str != "") {
$.ajax({
type: "POST",
url: "=QOOB_DOMAIN; ?>backdoor/ajax/",
data: "action=inflection&type="+$("input:radio[name=inflection]:checked").val()+"&str="+str,
cache: false,
success: function(html){
$("#URLexample").html("=QOOB_DOMAIN; ?>"+html);
$("#theRealURL").val(html);
}
});
}
}
function verify() {
var themessage = "";
if (document.addPage.txtTitle.value=="") {
themessage += "You must specify a page title!
";
}
if (document.addPage.txtSubTitle.value=="") {
themessage += "You must specify a page subtitle!
";
}
if (document.addPage.txtBody.value=="") {
themessage += "You must specify some page content!
";
}
if (document.addPage.theRealURL.value=="") {
themessage += "You must specify a page URL!
";
}
if (document.addPage.theRealURL.value=="error") {
themessage += "You have an error in your URL!
";
}
if (themessage == "") {
document.addPage.submit();
} else {
//alert(themessage);
$("#formErrors").html('