
function popUp(theURL, Name, popW, popH, scroll) { 
		var winleft = (screen.width - popW) / 2;
		var winUp = (screen.height - popH) / 2;
		winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
		Win = window.open(theURL, Name, winProp)
		if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}

function addToFavorites(url,title) {
	
	if (window.external) { 
		window.external.AddFavorite(urlAddress,pageName);
	} else { 
		alert("Sorry! Your browser doesn't support this function."); 
	}
}

function verify_country(country,stateID) {
	
	var state = document.getElementById(stateID);
	if(state) {
		if(country.options[country.selectedIndex].text == "US") {
			state.disabled = false;
		} else {
			state.disabled = true;
		}
	}
	
}


function SelectDisabled(dropdown,msg) {
	
	if (dropdown.options[dropdown.selectedIndex].disabled) {
		alert(msg);
		dropdown.selectedIndex = 0;
	}
	
}


function accept() {
		if(document.forms[0].agree.checked) {
			return true;
		} else {
			alert('You must accept our Terms and Conditions');
			return false;

		}
	}

function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrOver;
	}
  }
  
function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }
function mClk(src) {
    document.location.href=src;
	/*if(event.srcElement.tagName=='TR'){
	   src.children.tags('A')[2].click();
    }*/
  }

function doCheckout(form) {
	if(!accept()) {
		return false;
	} 
	form.submit.disabled=true;
}