

function grabMe(type, numReturned){

    /************************************************
     **
     **  Name: function grabMe
     **  Arthur: Patrick Helms
     **  Created: March, 2011
     **  Purpose: Generate random testimony each time
     **  User refreshes the page.
     **
     **************************************************/
    var number = 16;
    
    var ArrayText = Array();
    ArrayText[0] = Array();
    ArrayText[1] = Array();
    ArrayText[2] = Array();
    ArrayText[3] = Array();
    ArrayText[4] = Array();
    ArrayText[5] = Array();
    ArrayText[6] = Array();
    ArrayText[7] = Array();
    ArrayText[8] = Array();
    ArrayText[9] = Array();
    ArrayText[10] = Array();
    ArrayText[11] = Array();
    ArrayText[12] = Array();
    ArrayText[13] = Array();
    ArrayText[14] = Array();
    ArrayText[15] = Array();
    
    ArrayText[0]['Name'] = 'John';
    ArrayText[0]['Testimony'] = 'I never thought I would be one to settle down, then I met Kim.';
    ArrayText[1]['Name'] = 'Paul';
    ArrayText[1]['Testimony'] = 'Amazing, that\'s all I can say.';
    ArrayText[2]['Name'] = 'Jen';
    ArrayText[2]['Testimony'] = 'Can\'t believe this site works!!';
    ArrayText[3]['Name'] = 'Megan';
    ArrayText[3]['Testimony'] = 'Every time I look into his eyes I say "Thanks Hero Dating"';
    ArrayText[4]['Name'] = 'Mark';
    ArrayText[4]['Testimony'] = 'Hero Dating changed my life, for the better by helping me find my wife and my son that\'s on the way.';
    ArrayText[5]['Name'] = 'Nichole';
    ArrayText[5]['Testimony'] = 'I never thought I would find anyone, but I did and I have to thank my friend for recommending this site to me. ';
    ArrayText[6]['Name'] = 'John-Paul';
    ArrayText[6]['Testimony'] = 'I met my wife, who is in the Navy, in Japan while I am in the Army. We would have never met without this site.';
    ArrayText[7]['Name'] = 'Sarah';
    ArrayText[7]['Testimony'] = 'Wow. I do not know what else I can say.';
    ArrayText[8]['Name'] = 'Patrick';
    ArrayText[8]['Testimony'] = 'I was always missing something in my life, and you guys helped me find it.';
    ArrayText[9]['Name'] = 'Kevin';
    ArrayText[9]['Testimony'] = 'I love my wife, you guys made that happen. Thanks.';
    ArrayText[10]['Name'] = 'Kim';
    ArrayText[10]['Testimony'] = 'I met my husband on Hero Dating about the same time I was giving up. It was obviously ment to be.';
    ArrayText[11]['Name'] = 'Brad';
    ArrayText[11]['Testimony'] = 'Sara is the love, we have been together 6 months now but it feels like 6 years. Thanks!!';
    ArrayText[12]['Name'] = 'Ryan';
    ArrayText[12]['Testimony'] = 'I met my fiance a year ago on Hero Dating and it was the simplest site I have seen.';
    ArrayText[13]['Name'] = 'Nolan';
    ArrayText[13]['Testimony'] = 'I met Summer and knew I found the one. Hero Dating did that. What more can I say?';
    ArrayText[14]['Name'] = 'Chris';
    ArrayText[14]['Testimony'] = 'This site is amazing, thanks so much. It\'s all I can say about what you have done for me!';
    ArrayText[15]['Name'] = 'Craig';
    ArrayText[15]['Testimony'] = 'No more stalkers and crazy people. I love this site.';
    
    
    if (type == 'Testimony') {
    
        var i = Math.floor(number * Math.random())
		
	
        
        if (ArrayText[i]['Name'] == '' || ArrayText[i]['Testimony'] == '') {
            return FALSE;
        }
        else {
            document.getElementById('hiddenT').value = i;
            return ArrayText[i]['Testimony'];
        }
        
        
    } // if type
    else {
        if (numReturned != '') {
            return ArrayText[numReturned]['Name'];
        }
    }
}

