function paging(){


}

function showMessage(m){
	alert(m);
}

function popupWindow(url,w,h) {

	h += 5;
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width='+w+',height='+h+',screenX=150,screenY=150,top=150,left=150')

}
function isValidEmail(str) {
	var filter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	if (filter.test(str))
		return true;
	else
		return false;
}


function checkAge(){
	day = document.getElementById("day");
	year = document.getElementById("year");
	month = document.getElementById("month");
	timeA = new Date(year.options[year.selectedIndex].text, month.options[month.selectedIndex].text,day.options[day.selectedIndex].text);
	var thirteenYears = new Date();
	thirteenYears.setDate(thirteenYears.getDate()-4732);//4732 days in 13 years
	if(timeA > thirteenYears){
		disabled=true;
	}else{
		disabled=false;
	}

}

function daysInMonth(iMonth, iYear)
{
	return 32 - new Date(iYear, iMonth, 32).getDate();
}

function loadFlash(){
		var so = new SWFObject("/images/section/welcome/header.swf", "BG Header", "778", "195", "9", "#FFFFFF");
		so.write("flash_header");
}
function openPopup(width, height, title, somepage){
	newwin=window.open(somepage,'tt','width=' + width + ',height=' + height+',scrollbars=1,status=1,location=no,toolbar=no,resizable=yes');
	newwin.focus();
}

function noItemsInCart(){
	alert("Please place an item into your cart before checkout.");
}