// install a firefox plugin from a webpage nicely
var install_sac_firefox_addon = function( url) {
    xpi = { 'Steep And Cheap' : url };
    InstallTrigger.install(xpi);
    return false;
}

function verify_ieplugin_browser_match()
{
    //Downloading the ie plugin from anythyng but ie
    if (YAHOO.env.ua.ie <= 0)
    {
        alert('Must use Internet Explorer to download the Internet Explorer Plugin.');
        return false;
    }
    return true;
}

function phone_validate()
{
	var areaCode = document.getElementById('areaCode');
	var phone1 = document.getElementById('phoneNumber01');
	var phone2 = document.getElementById('phoneNumber02');
	if((areaCode.value.search(/\d{3}/)==-1)||(phone1.value.search(/\d{3}/)==-1)||(phone2.value.search(/\d{4}/)==-1))
	{
		alert("The phone number you entered is not valid.\r\nPlease enter a phone number with the format 123-456-7890.");
		return false;
	}
	return true;
}
