function confirm_delete(url){
y=confirm("Are you sure?");
if (y) location.href=url;
}

function ConfirmDeleteGroup () {
    y=confirm("Are you sure?");
    if (y) {
	document.deletelist.submit();
    }
}

function highlight(field) {
        field.focus();
        field.select();
}
function unhighlight(field) {
//        document.form1.reset();
//        field.blur();
}
function feedback(){
window.open("feedback.php?url="+window.location.href, "feedback" , "height=450, width=350", "location=No,directories=No,status=No,menubar=No,scrollbars=No,toolbar=No")
}
function thank(){
 alert("Thank you for sending us your feedback.");
 window.close();
}

function xselect() {
if (CheckAllEmailsClear==1) {
    var theForm = document.deletelist;
    for (i=0; i<theForm.elements.length; i++) {
        if (theForm.elements[i].name=='xdelete[]')
            theForm.elements[i].checked = false;
    }
    CheckAllEmailsClear=0;
    }else{
    var theForm = document.deletelist;
        for (i=0; i<theForm.elements.length; i++) {
        if (theForm.elements[i].name=='xdelete[]')
            theForm.elements[i].checked = true;
	        
    }
    CheckAllEmailsClear=1;
    }
}