defaultStatus="Welcome to CreditCards.com";

function Application(URL){
 day = new Date();
 id = day.getTime();
 eval("page" + id + " = window.open(URL,'" + id + "','toolbar=1,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=730,height=530,left=0,top=0');");
}

function MM_displayStatusMsg(msgStr){
 status=msgStr;
 document.MM_returnValue = true;
}

function sendPage(){
 window.location = "mailto:?subject=You have been sent an article from CreditCards.com&body="+document.title+"--"+window.location;
}

function sendCardPage(cardName){
 body = 'I thought this credit card may be of interest to you. Apply for it online at CreditCards.com.%0D%0A%0D%0A' + cleanEmail(cardName) + '%0D%0AApply online -- ' + window.location + '?a_aid=55e9fdc2';
 window.location = 'mailto:?subject=Thought this card may interest you&body='+ body;
}

function showHide(elementId){
 var myElement = document.getElementById(elementId);
 myElement.style.display == "block"?myElement.style.display = "none":myElement.style.display = "block";
}

function addBookmark(title, url){
 if (window.sidebar) { // firefox
  window.sidebar.addPanel(title, url,"");
 } else if(document.all) { //MSIE
  window.external.AddFavorite( url, title);
 }
}

function tellAFriend(){
 window.location = "mailto:?subject=Credit%20Cards%20-%20useful%20site&body=Hi%21%0A%0AI%20thought%20you%20would%20be%20interested%20in%20this%20website-%20CreditCards.com%20is%20a%20free%20online%20resource%20where%20you%20can%20compare%20hundreds%20of%20credit%20card%20offers.%0A%0Ahttp%3A//www.CreditCards.com/%3Fcid%3Dtaf%0A%0A";
}

function cleanEmail(param){
 param = param.replace(/<sup>/g, '(');
 param = param.replace(/<\/sup>/g, ')');
 param = param.replace(/®/g, '');
 param = param.replace(/Â®/g, '');
 return param;
}