﻿function clearField(field) {
    if (field.id == "txtName") {
        if (field.value == "Enter Your Name...") {
            field.value = "";
        }
    } else if (field.id == "txtComment") {
        if (field.value == "Comment...") {
            field.value = "";
        }
    }
}

function fillField(field) {
    if (field.id == "txtName") {
        if (field.value == "") {
            field.value = "Enter Your Name...";
        }
    } else if (field.id == "txtComment") {
        if (field.value == "") {
            field.value = "Comment...";
        }
    }
}

function deleteRecord(id) {
    var check = confirm("Are you sure you want to permanently delete this record?");
    if (check == true) {
        window.location = "view.aspx?delete=" + id;
    }
}
