﻿
var radioobj;

function agreesubmit(el) {
    radioobj = el;
    if (document.all || document.getElementById) {
        for (i=0; i < radioobj.form.length; i++){ 
            var tempobj = radioobj.form.elements[i];
            if(tempobj.type.toLowerCase()=="submit") {
                tempobj.disabled = !radioobj.checked;
            }
        }
    }
}

function defaultagree(el) {
    if (!document.all && !document.getElementById) {
        if (window.radioobj&&radioobj.checked) {
            return true;
        } else {
            alert("Please read/accept terms to submit form")
            return false;
        }
    }
}

function noPrescClick() {
    alert('You must have a prescription in order to purchase a CPAP Machine.\r\rIf you do place the order and cannot provide the prescription you \rwill be charged a 15% re-stocking fee!');
}
function add2CartClick() {
    alert('You have agreed that you have a prescription. \r       \r                     Please fax it to: \r               ==============\r                     (708) 364-0166\r\rIf you do place the order and cannot provide the prescription you \rwill be charged a 15% re-stocking fee');
}

function launchEmailQuote(sPage, sTitle) {
	window.name = 'main';
	window.open('emailquote.pl?Page=' + sPage + '&Title=' + sTitle, 'quote', 'toolbar=no,statusbar=no,location=no,scrollbars=no,resizable=no,width=500,height=350');
}

