/* Parrots.js */

function Validate(qty_id) {
/*
 *  Validate Quantity. 
 */
    var qty = document.getElementById(qty_id).value;
        qty = qty.replace(/^\s+|\s+$/g,"");
    document.getElementById(qty_id).value = qty;
    if (!/^\d+$/.test(qty) || qty == "0" || qty == "00") {
        alert("Quantity must be numeric and greater than zero!");
        document.getElementById(qty_id).select();
        document.getElementById(qty_id).focus();
        return false;
    }
    return true;
}

function Windows(img) {
/*
 *  Window Open. 
 */
   var win = window.open(img,"","resizable=yes,scrollbars=no,width=660,height=660");
}

