function mwspop(url, winname, w, h)
{
	OpenWin = this.open(url, winname, "toolbar=no,width=" + w + ",height=" + h + ",menubar=0,location=0,scrollbars=0,resizable=0");
	OpenWin.focus();
}

function mwschangestates(obj, sDropdown, sText)
{
    var sCountry = obj.options[obj.selectedIndex].value;
    var bShowDropdown = (sCountry == 'US' || sCountry == 'CA' || sCountry == '');
    document.getElementById(sDropdown).style.display = ( bShowDropdown ? 'inline' : 'none' );
    document.getElementById(sText).style.display = ( bShowDropdown ? 'none' : 'inline' );
}

function mwstrim(str)
{   
	return str.replace(/^\s+/,'').replace(/\s+$/,'');
}

// onkeypress="return mwsblockentersubmit(event);"
function mwsblockentersubmit(e) 
{
	var keynum = (typeof e.which != "undefined") ? e.which : e.keyCode;
	return (keynum != 13);
}

