<?xml version="1.0" encoding="utf-8"?>
<InstanceReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Version>2.0.0.10</Version>
  <hasSegments>false</hasSegments>
  <ReportName>13. SHORT-TERM DEBT AND SHORT-TERM RESTRICTED CASH AND CASH EQUIVALENTS</ReportName>
  <ReportLongName>006120 - Disclosure - 13. SHORT-TERM DEBT AND SHORT-TERM RESTRICTED CASH AND CASH EQUIVALENTS</ReportLongName>
  <DisplayLabelColumn>true</DisplayLabelColumn>
  <ShowElementNames>false</ShowElementNames>
  <RoundingOption />
  <HasEmbeddedReports>false</HasEmbeddedReports>
  <Columns>
    <Column>
      <LabelColumn>false</LabelColumn>
      <Id>1</Id>
      <Labels>
        <Label Id="1" Label="6 Months Ended" />
        <Label Id="2" Label="Apr. 30, 2010" />
      </Labels>
      <CurrencyCode>usd</CurrencyCode>
      <CurrencySymbol>$</CurrencySymbol>
      <FootnoteIndexer />
      <hasSegments>false</hasSegments>
      <hasScenarios>false</hasScenarios>
      <Segments />
      <Scenarios />
      <Units>
        <Unit>
          <UnitID>u000</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>u001</UnitID>
          <UnitType>Standard</UnitType>
          <StandardMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </StandardMeasure>
          <Scale>0</Scale>
        </Unit>
        <Unit>
          <UnitID>u002</UnitID>
          <UnitType>Divide</UnitType>
          <NumeratorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/iso4217</MeasureSchema>
            <MeasureValue>USD</MeasureValue>
            <MeasureNamespace>iso4217</MeasureNamespace>
          </NumeratorMeasure>
          <DenominatorMeasure>
            <MeasureSchema>http://www.xbrl.org/2003/instance</MeasureSchema>
            <MeasureValue>shares</MeasureValue>
            <MeasureNamespace>xbrli</MeasureNamespace>
          </DenominatorMeasure>
          <Scale>0</Scale>
        </Unit>
      </Units>
    </Column>
  </Columns>
  <Rows>
    <Row>
      <Id>2</Id>
      <Label>Notes To Financial Statements [Abstract]</Label>
      <Level>0</Level>
      <ElementName>a_NotesToFinancialStatementsAbstract</ElementName>
      <ElementPrefix>a</ElementPrefix>
      <IsBaseElement>false</IsBaseElement>
      <BalanceType>na</BalanceType>
      <PeriodType>duration</PeriodType>
      <ElementDataType>string</ElementDataType>
      <ShortDefinition>No definition available.</ShortDefinition>
      <IsReportTitle>false</IsReportTitle>
      <IsSegmentTitle>false</IsSegmentTitle>
      <IsSubReportEnd>false</IsSubReportEnd>
      <IsCalendarTitle>false</IsCalendarTitle>
      <IsTuple>false</IsTuple>
      <IsAbstractGroupTitle>true</IsAbstractGroupTitle>
      <IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow>
      <IsEquityAdjustmentRow>false</IsEquityAdjustmentRow>
      <IsBeginningBalance>false</IsBeginningBalance>
      <IsEndingBalance>false</IsEndingBalance>
      <IsReverseSign>false</IsReverseSign>
      <PreferredLabelRole />
      <IsEPS>false</IsEPS>
      <FootnoteIndexer />
      <Cells>
        <Cell>
          <Id>1</Id>
          <ShowCurrencySymbol>false</ShowCurrencySymbol>
          <IsNumeric>false</IsNumeric>
          <IsRatio>false</IsRatio>
          <DisplayZeroAsNone>false</DisplayZeroAsNone>
          <NumericAmount>0</NumericAmount>
          <RoundedNumericAmount>0</RoundedNumericAmount>
          <NonNumbericText />
          <NonNumericTextHeader />
          <FootnoteIndexer />
          <hasSegments>false</hasSegments>
          <hasScenarios>false</hasScenarios>
          <DisplayDateInUSFormat>false</DisplayDateInUSFormat>
        </Cell>
      </Cells>
      <OriginalInstanceReportColumns />
      <ElementDefenition>No definition available.</ElementDefenition>
      <IsTotalLabel>false</IsTotalLabel>
    </Row>
    <Row>
      <Id>3</Id>
      <Label>SHORT-TERM DEBT AND SHORT-TERM RESTRICTED CASH &amp; CASH EQUIVALENTS</Label>
      <Level>1</Level>
      <ElementName>a_ShortTermDebtAndShortTermRestrictedCashAndCashEquivalentsTextBlock</ElementName>
      <ElementPrefix>a</ElementPrefix>
      <IsBaseElement>false</IsBaseElement>
      <BalanceType>na</BalanceType>
      <PeriodType>duration</PeriodType>
      <ElementDataType>string</ElementDataType>
      <ShortDefinition>This element may be used as a single block of text to encapsulate the entire disclosure for short-term borrowings including...</ShortDefinition>
      <IsReportTitle>false</IsReportTitle>
      <IsSegmentTitle>false</IsSegmentTitle>
      <IsSubReportEnd>false</IsSubReportEnd>
      <IsCalendarTitle>false</IsCalendarTitle>
      <IsTuple>false</IsTuple>
      <IsAbstractGroupTitle>false</IsAbstractGroupTitle>
      <IsEquityPrevioslyReportedAsRow>false</IsEquityPrevioslyReportedAsRow>
      <IsEquityAdjustmentRow>false</IsEquityAdjustmentRow>
      <IsBeginningBalance>false</IsBeginningBalance>
      <IsEndingBalance>false</IsEndingBalance>
      <IsReverseSign>false</IsReverseSign>
      <PreferredLabelRole>terselabel</PreferredLabelRole>
      <IsEPS>false</IsEPS>
      <FootnoteIndexer />
      <Cells>
        <Cell>
          <Id>1</Id>
          <ShowCurrencySymbol>false</ShowCurrencySymbol>
          <IsNumeric>false</IsNumeric>
          <IsRatio>false</IsRatio>
          <DisplayZeroAsNone>false</DisplayZeroAsNone>
          <NumericAmount>0</NumericAmount>
          <RoundedNumericAmount>0</RoundedNumericAmount>
          <NonNumbericText>&lt;div&gt;       &lt;div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;13.  SHORT-TERM DEBT AND SHORT-TERM RESTRICTED CASH &amp;amp; CASH  EQUIVALENTS&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;&lt;font style="DISPLAY: inline; FONT-STYLE: italic"&gt;Credit  Facility&amp;#160;&amp;#160;&amp;#160;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;On May  11, 2007, we entered into a five-year credit agreement, which provides for a  $300 million unsecured credit facility that will expire on May 11, 2012. On  September&amp;#160;8, 2009, we entered into an Accession Agreement, increasing the  credit facility from $300 million to $330 million. The company may use amounts  borrowed under the facility for general corporate purposes. As of April 30, 2010  the company has no borrowings outstanding under the facility.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;&amp;#160;&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt"&gt;On August 17, 2009 the credit facility  agreement was amended to provide additional financing flexibility in advance of  the acquisition of Varian, Inc.&amp;#160;&amp;#160;The amendment allows for up to $1  billion of additional indebtedness, incurred during the period from August 17,  2009 through the closing of the acquisition, May 14, 2010, to be excluded from  the leverage ratio covenant until March 1, 2011. It also temporarily reduces the  basket for other secured financing we are permitted to incur from $300 million  to $75 million during this period. The amendment also increases by $500 million  the amount of repurchase obligations (such as those of Agilent Technologies  World Trade, Inc., a consolidated wholly-owned subsidiary of Agilent (&amp;#8220;World  Trade&amp;#8221;)&lt;/font&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt"&gt;), that we are  permitted to incur&lt;/font&gt;.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-STYLE: italic; FONT-FAMILY: Times New Roman"&gt;World  Trade Debt&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  January 2006, World Trade entered into a five-year Master Repurchase Agreement  with a counterparty in which World Trade sold 15,000 Class A preferred shares of  Agilent Technologies (Cayco) Limited (&amp;#8220;Cayco&amp;#8221;) to the counterparty, having an  aggregate liquidation preference of $1.5 billion. World Trade owns all of the  outstanding common shares of Cayco, a separate legal entity.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;In  September 2008, Agilent and World Trade entered into an agreement (the &amp;#8220;Lloyds  Related Agreement&amp;#8221;) with Lloyds TSB Bank plc (&amp;#8220;Lloyds&amp;#8221;). Under the Lloyds  Related Agreement, on November 17, 2008 (the &amp;#8220;Effective Date&amp;#8221;), Lloyds accepted  the transfer by novation of all of the rights and obligations of the  counterparty under a revised Master Repurchase Agreement. On the Effective Date,  Lloyds paid $1.5 billion to the prior counterparty in consideration of the  novation and World Trade&amp;#8217;s repurchase obligation was extended to January 27,  2011 (the &amp;#8220;Extended Repurchase Date&amp;#8221;). World Trade is obligated to make  aggregate quarterly payments to Lloyds at a rate per annum, reset quarterly,  with reference to LIBOR plus 175 basis points beginning on the Effective Date.  We are currently considering a number of options to extend, reduce or eliminate  the world trade debt.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 27pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;Lloyds  can accelerate the Extended Repurchase Date or cause redemption of the preferred  Cayco shares only upon certain events of default, but neither World Trade nor  Agilent has the right to accelerate the Extended Repurchase Date. The World  Trade obligation of $1.5 billion is recorded and classified as a short-term debt  on our condensed consolidated balance sheet.&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; TEXT-INDENT: 0pt"&gt;&lt;br /&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-STYLE: italic; FONT-FAMILY: Times New Roman"&gt;Short-Term  Restricted Cash &amp;amp; Cash Equivalents&lt;/font&gt;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="justify"&gt;&amp;#160;&lt;/div&gt;         &lt;div style="DISPLAY: block; MARGIN-LEFT: 0pt; TEXT-INDENT: 0pt; MARGIN-RIGHT: 0pt" align="left"&gt;&lt;font style="DISPLAY: inline; FONT-SIZE: 10pt; FONT-FAMILY: Times New Roman"&gt;As of  April 30, 2010, $1,552 million was reported as short-term restricted cash and  cash equivalents in our condensed consolidated balance sheet which is held in  commercial paper maintained in connection with our World Trade debt obligation.  As of October 31, 2009, $1,555 million of restricted cash and cash equivalents  associated with our World Trade debt obligation was reported as long-term in our  condensed consolidated balance sheet.&lt;/font&gt;&lt;/div&gt;       &lt;/div&gt;     &lt;/div&gt;</NonNumbericText>
          <NonNumericTextHeader>13.  SHORT-TERM DEBT AND SHORT-TERM RESTRICTED CASH &amp;amp; CASH  EQUIVALENTS         &amp;#160;         Credit  Facility&amp;#160;&amp;#160;&amp;#160;                  On May </NonNumericTextHeader>
          <FootnoteIndexer />
          <hasSegments>false</hasSegments>
          <hasScenarios>false</hasScenarios>
          <DisplayDateInUSFormat>false</DisplayDateInUSFormat>
        </Cell>
      </Cells>
      <OriginalInstanceReportColumns />
      <ElementDefenition>This element may be used as a single block of text to encapsulate the entire disclosure for short-term borrowings including data and tables. Also includes separate disclosure of the cash and cash items which are restricted as to withdrawal or usage. The provisions of any restrictions shall be described in a note to the financial statements. Restrictions may include legally restricted deposits held as compensating balances against short-term borrowing arrangements, contracts entered into with others, or entity statements of intention with regard to particular deposits; however, time deposits and short-term certificates of deposit are not generally included in legally restricted deposits.</ElementDefenition>
      <ElementReferences>No authoritative reference available.</ElementReferences>
      <IsTotalLabel>false</IsTotalLabel>
    </Row>
  </Rows>
  <Footnotes />
  <ComparabilityReport>false</ComparabilityReport>
  <NumberOfCols>1</NumberOfCols>
  <NumberOfRows>2</NumberOfRows>
  <HasScenarios>false</HasScenarios>
  <MonetaryRoundingLevel>UnKnown</MonetaryRoundingLevel>
  <SharesRoundingLevel>UnKnown</SharesRoundingLevel>
  <PerShareRoundingLevel>UnKnown</PerShareRoundingLevel>
  <HasPureData>false</HasPureData>
  <SharesShouldBeRounded>true</SharesShouldBeRounded>
</InstanceReport>
