// SET THE STATUS BAR MESSAGE
defaultStatus="Welcome to blogs.creditcards.com";

<!-- New Window
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');");
}
// End -->

<!-- Rollover Status Bar Message
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;

} 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function sendPage(){ //v1.0
      window.location = "mailto:?subject=Check out this blog from CreditCards.com&body="+document.title+" -- "+window.location;
}

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

function validateComments(form) {
	if (form.text.value == "") {
		alert("Please enter Comments.");
		form.text.focus();
		return false;
	}
	
	return true;
}

function isValidEmail(str) {
	var re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
	
	if (re.test(str)) {
		return true;
	}
}

function addslashes(str) {
	str=str.replace(/\'/g,'\\\'');
	return str;
}
