function ConnectionFailure(theID){
    document.getElementById(theID).innerHTML = '';
}
function printRandomArticle(theID,category,categoryLink,taxName){
    new Ajax.Request("/Scripts/randomArticle.asp?Category=" + category + "&Alt=" + category + "&Link=" + categoryLink + "&linkName=See+more+" + category + "+Articles&CategoryTax=" + taxName, {
    method: 'get',
    onSuccess: function(transport) {
        document.getElementById(theID).innerHTML = transport.responseText;
	//alert(transport.responseText);
},  onFailure: function(transport) {
        ConnectionFailure(theID);
    }});
}

printRandomArticle("FamilyFunArticle",'Family+Fun','/family-fun',"Family+Vacations");
printRandomArticle("RomanticWeekendArticle",'Romantic+Weekends','/romantic-weekends',"Romantic+Weekends");
printRandomArticle("OutdoorAdventureArticle",'Outdoor+Adventures','/outdoor-adventures',"Outdoor+Adventures");
printRandomArticle("HistoricTourArticle",'Historic+Tours','/historic-tours',"Historic+Tours");
printRandomArticle("CasinoTripArticle",'Casino+Trips','/casino-trips',"Casino+Thrills");
printRandomArticle("GirlfriendGetawayArticle",'Girlfriend+Getaways','/girlfriend-getaways',"Girlfriend+Getaways");
printRandomArticle("VintageEscapeArticle",'Vintage+Escapes','/vintage-escapes',"Vintage+Escapes");