function submitAction(formName, thisValue)
{

  switch(thisValue) {
    case '1':
      s="SPAM"; break; 
    case '2':
      s="a threat"; break;
    case '3':
      s="having personal information"; break;
    default:
      s="a problem";
  }
  var r=confirm("Are you sure that you would like to flag this as "+s+"?");
  if (r==true) {
    document.forms[formName].f_type.value = thisValue;
    document.forms[formName].scrollx.value = (document.all)?document.body.scrollLeft:window.pageXOffset;
    document.forms[formName].scrolly.value = (document.all)?document.body.scrollTop:window.pageYOffset; 
    document.forms[formName].submit();
  } else {
  }
    
}

function submitCategory(formName, thisValue)
{

  document.forms[formName].category.value = thisValue;
  document.forms[formName].submit();
    
}

function showDetails(thisValue)
{

  switch(thisValue) {
    case 'captcha':
      s="The security code is a word that can only be recognized by "+
            "a human being and that has to be input as confirmation. "+
            "This is to prevent unwanted spam that is generated by spam "+
            "robots."; break; 
    case 'from':
      s="The person that receives the e-mail will not see your e-mail "+
            "address. You will receive a copy of the e-mail "+
            "along with a link to be able to counter any response e-mails."; break;
  }
  alert(s);
    
}

function sendtest(formName)
{

  var thisemail = prompt("Please enter an e-mail address to send a test:", "");

  if (thisemail!=null && thisemail!="") {
    document.forms[formName].testemail.value = thisemail;
    document.forms[formName].submit();
  }
    
}

function fbs_click(u)
{
  var t=document.title;
  var url='http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t);
  var url2=encodeURIComponent(url);
  window.open('http://revengemail.com/fwd.php?url='+url2,'sharer','toolbar=0,status=0,width=626,height=436');
  return false;
}

function fmi_click(u)
{
  var url='http://www.feedmyinbox.com/?&feed=http://revengemail.com/rss_feed.xml';
  var url2=encodeURIComponent(url);
  window.open('http://revengemail.com/fwd.php?url='+url2, 'fmi', 'scrollbars=yes,width=1024,height=525');
  return false;
}

function fmi_link(u)
{
  var url='http://www.feedmyinbox.com/?&feed='+u;
  var url2=encodeURIComponent(url);
  window.open('http://revengemail.com/fwd.php?url='+url2, 'fmi', 'scrollbars=yes,width=1024,height=525');
  return false;
}

function GetThis(T, C, U, L)
{
  var url = 'http://www.myspace.com/index.cfm?fuseaction=postto&' + 't=' + encodeURIComponent(T) + '&c=' + encodeURIComponent(C) + '&u=' + encodeURIComponent(U) + '&l=' + L;
  var url2=encodeURIComponent(url);
  window.open('http://revengemail.com/fwd.php?url='+url2, 'fmi', 'scrollbars=yes,width=520,height=510');
  return false;
}

function ProcessVote(formName, vote)
{
  document.forms[formName].rating.value = vote;
  document.forms[formName].scrollx.value = (document.all)?document.body.scrollLeft:window.pageXOffset;
  document.forms[formName].scrolly.value = (document.all)?document.body.scrollTop:window.pageYOffset; 
  document.forms[formName].submit();
}
