function SiteUpdate_ApproveSelected(form, prefix) {

  count = Browser_CalcSelection(form, prefix);

  if (count == 0)
    alert('Please select at lease one record')
  else
  if (confirm('Are you sure you want to approve update request for ' + count + ' selected product(s)?'))
    __DoPostBack(form, 'approve_selected');

};

function SiteUpdate_Approve(form, id, name) {

  if (confirm('Are you sure you want to approve update requests for "' + name + '"?'))
    __DoPostBack(form, 'approve', id);

};

function SiteUpdate_DenySelected(form, prefix) {

  count = Browser_CalcSelection(form, prefix);

  if (count == 0)
    alert('Please select at lease one record')
  else
  if (confirm('Are you sure you want to deny update request for ' + count + ' selected product(s)?'))
    __DoPostBack(form, 'deny_selected');

};

function SiteUpdate_Deny(form, id, name) {

  if (confirm('Are you sure you want to deny update requests for "' + name + '"?'))
    __DoPostBack(form, 'deny', id);

};

function SiteInsert_PublishSelected(form, prefix) {

  count = Browser_CalcSelection(form, prefix);

  if (count == 0)
    alert('Please select at lease one record')
  else
  if (confirm('Are you sure you want to publish ' + count + ' selected posting(s)?'))
    __DoPostBack(form, 'publish_selected');

};

function SiteInsert_Publish(form, id, name) {

  if (confirm('Are you sure you want to publish "' + name + '"?'))
    __DoPostBack(form, 'publish', id);

};

function SiteInsert_RejectSelected(form, prefix) {

  count = Browser_CalcSelection(form, prefix);

  if (count == 0)
    alert('Please select at lease one record')
  else
  if (confirm('Are you sure you want to reject publishing of ' + count + ' selected posting(s)?'))
    __DoPostBack(form, 'reject_selected');

};

function SiteInsert_Reject(form, id, name) {

  if (confirm('Are you sure you want to reject publishing of "' + name + '"?'))
    __DoPostBack(form, 'reject', id);

};

function SendSelected(form, prefix) {

  count = Browser_CalcSelection(form, prefix);

  if (count == 0)
    alert('Please select at lease one record')
  else
  if (confirm('Are you sure you want to send ' + count + ' email(s)?'))
    __DoPostBack(form, 'send_selected');

};

function Clean_Award(form, id, name) {

  if (confirm('Are you sure you want to Award "100% Clean" to "' + name + '"?'))
    __DoPostBack(form, 'award', id);

};
function Clean_Revoke(form, id, name) {

  if (confirm('Are you sure you want to Revoke "100% Clean" from "' + name + '"?'))
    __DoPostBack(form, 'revoke', id);

};

function Site_RetrieveSiteInfo() {

  __DoPostBack('get_site_info');

}

function Site_RetrieveWhoisInfo() {

  __DoPostBack('get_whois_info');

}

function SiteBroken_Approve(form, id, name) {

  if (confirm('This will remove product "' + name + '" from directory. Continue?'))
    __DoPostBack(form, 'approve', id);

};
