function confirmSubmit()
{
var agree=confirm("Are you sure you wish to continue?");
if (agree)
    return true;
else
    return false;
}

function confirmSubmitCustom(message)
{
var agree=confirm(message);
if (agree)
    return true;
else
    return false;
}

function confirmDelete()
{
var agree=confirm("Are you sure you wish to delete?");
if (agree)
    return true;
else
    return false;
}

function confirmDeleteCustom(message)
{
var agree=confirm(message);
if (agree)
    return true ;
else
    return false ;
}


function clearOrderForm(formIdent) 
{ 
    if (confirm("Are you sure you want to clear the form?")) 
    {
      var form, elements, i, elm; 
      form = document.getElementById 
        ? document.getElementById(formIdent) 
        : document.forms[formIdent]; 

        if (document.getElementsByTagName)
        {     
            elements = form.getElementsByTagName('input');
            for( i=0, elm; elm=elements.item(i++); )
            {
                if (elm.getAttribute('type') == "text") {
                    elm.value = '';
                } else if (elm.getAttribute('type') == "radio") {
                    elm.checked = false;
                } else {
                    elm.value = 0;
                    
                    // dropdowns
                    var title = document.getElementById('salutation');
                    var country = document.getElementById('country');
                    var state = document.getElementById('state');
                    var ccType = document.getElementById('cctype');
                    
                    title.selectedIndex = 0;
                    country.selectedIndex = 0;
                    state.selectedIndex = 0;
                    ccType.selectedIndex = 0;
                    
                    // make sure the country and state
                    // is setup correctly
                    dynamicDropDownInit();

                }
            }
        }
    }
}