
/*
 * iBLOG 2005
 *
 * Links to external source & redirection
 * This is because some browsers wont parse &amp; sign correctly
 */


function location_AdDelete(vId, vCode) {
  if (confirm('Delete this entry?')) document.location = './?action=Ads&id='+vId+'&mode=Delete&code='+vCode;
}

function location_AdEntry(vId) {
  document.location='./?action=Ads&id='+vId;
}

function location_CommentCancel(vId) {
  document.location = './?action=Comment&id='+vId;
}

function location_CommentDelete(vId, vCode) {
  if (confirm('Delete this comment?')) document.location = './?action=Comment&deletepost='+vId+'&code='+vCode;
}

function location_FaqDelete(vId, vCode) {
  if (confirm('Delete this FAQ entry?')) document.location='./?action=FAQ&id='+vId+'&code=D'+vCode;
}

function location_EventDelete(vId, vCode) {
  if (confirm('Delete this entry?')) document.location = './?action=Events&id='+vId+'&mode=Delete&code='+vCode;
}

function location_NewsDelete(vId, vCode) {
  if (confirm('Delete this entry?')) document.location = './?action=News&id='+vId+'&mode=Delete&code='+vCode;
}

function location_PartnerDelete(vId, vCode) {
  if (confirm('Delete this entry?')) document.location = './?action=Partners&id='+vId+'&mode=Delete&code='+vCode;
}

function location_Profile(vId) {
  document.location='./?action=Profile&id='+vId;
}

function location_ProfileEdit(vId) {
  document.location='./?action=Profile&id='+vId+'&mode=Edit';
}

function location_Review(vId) {
  document.location = './?action=Reviews&id='+vId;
}

function location_ReviewDelete(vId, vCode) {
  if (confirm('Delete this entry?')) document.location = './?action=EditReview&id='+vId+'&mode=Delete&code=D'+vCode;
}

function location_Search(vAction, vId) {
  if (vAction=='Comments') document.location = './?action=Comments&viewpost='+vId;
  else document.location = './?action='+vAction+'&id='+vId;
}

function location_PubDelete(vId, vCode, vIsComment) {
  msg = (vIsComment ? 'Delete this comment?' : 'Delete this entry?\n\nWarning! All the associated comments will be deleted too!');
  if (confirm(msg)) document.location = './?action=Pub&id='+vId+'&mode=Delete&code='+vCode;
}

function location_PubEntry(vId, vIsPost) {
  if (window.parent&&window.parent.iblog_setPublicboard) window.parent.iblog_setPublicboard(vId, vIsPost);
}

