function validateQty(obj)
{
	var qty;

	//Verify that the number is numeric
	if(isNaN(Number(obj.value)))
	{
		alert('Qty field must be numeric');
		obj.value=1;
		obj.focus();
		return;
	}

	qty = obj.value;
	//Validate that the qty is a whole number
	if ((qty % 1) > 0) {
		alert('Quantity entered ' + qty + ' is not a whole number.\nPlease correct and try again.');
		obj.value=1;
		obj.focus();
		return;
	}
	//Validate that the qty is a whole number > 0
	if (qty <= 0) {
		alert('Quantity must be greater than zero.\nPlease correct and try again.');
		obj.value=1;
		obj.focus();
		return;
	}

}
function ViewHelpDetail(htopic)
{
	var w, strPg
	strPg="http://www.c-els.com/sfc/HelpDetail.asp?htopic="+escape(htopic);
	w=window.open(strPg,"pHelpDetail","height=400,width=400,scrollbars=yes");
	w.focus();
}
function ViewHelpDetailByQID(qid)
{
	var w, strPg;
	if (qid!=-1)
	{
		strPg="http://www.c-els.com/sfc/HelpDetail.asp?qid="+escape(qid);
		w=window.open(strPg,"pHelpDetail","height=400,width=400,scrollbars=yes");
		w.focus();
	}
}
function processEnter(e) 
{ 
    // IE
    if (e.keyCode)
    {
        if (e.keyCode == 13)
        {
            document.all.aSrch.click();
            return false;
        }
        else
        {
            return true;
        } 
    }    
    // NN
    if (e.which) 
    {
        if (e.which == 13)
        {
            document.all.aSrch.click();
            return false;
        }
        else
        {
            return true;
        } 
    } 
       
}