
goodversion = true; 
window.onerror = report_error; 
notice = "This browser will not support this feature.\n" + "Please use at least Internet Explorer 4 or Netscape 4\n" + "You can visit one of the following to obtain a free copy\n\n" + " http://www.microsoft.com\n\n" + " http://www.netscape.com\n\n" + "At this time you can use the list of all the models on this site."; 
function getHeight(inch) {
   ft = Math.floor(inch / 12); 
   inches = inch - (ft * 12); 
   return ft + "'" + inches + "\""; 
   }
function getAge(mage) {
   dateary = mage.split("/"); 
   deltaTime = 0; 
   today = new Date(); 
   dob = new Date(dateary[2], dateary[0] - 1, dateary[1]); 
   if(dob.getTime() <= 0)deltaTime = today.getTime() + Math.abs(dob.getTime()); 
   elsedeltaTime = today.getTime() - dob.getTime(); 
   return Math.floor(deltaTime / (1000 * 60 * 60 * 24 * 365)); 
   }
function checkpic(low, hi, cntllow, cntlhi) {
   low = cntllow.options[cntllow.selectedIndex].value; 
   hi = cntlhi.options[cntlhi.selectedIndex].value; 
   if(parseInt(low) > parseInt(hi)) {
      cntllow.selectedIndex = cntlhi.selectedIndex; 
      return false; 
      }
   return true; 
   }
function getHi(strhl) {
   if(strhl.length > 2) {
      return parseInt(strhl.split("-")[1]); 
      }
   else {
      return parseInt(strhl); 
      }
   }
function isMatch(ary, item) {
   for(count = 0; count < ary.length; count++) {
      if(item.indexOf(ary[count]) !=- 1) {
         return true; 
         }
      }
   return false; 
   }
function resetbtn_onclick() {
   self.document.searchform.reset(); 
   primer(); 
   return true; 
   }
function primer() {
   if(bIsIE)self.document.searchform.style.cursor = "wait"; 
   setTimeout("update()", 10); 
   }
function report_error(msg, url, line) {
   var w = window.open("", "error", "resizable=1,status=0,width=625,height=400"); 
   var d = w.document; 
   d.write("<div align=center>"); 
   d.write("<br>" + msg + "<br>"); 
   d.write("<br>Line:" + line + "<br>"); 
   d.write("</div>"); 
   d.close; 
   return true; 
   }
function testlink() {
   if(idx == 0) {
      resetbtn_onclick(); 
      return false; 
      }
   return true; 
   }
function SpaceReplace(strName) {
   strTemp = new String(strName); 
   while(strTemp.indexOf(" ") > 0)strTemp = strTemp.substring(0, strTemp.indexOf(" ")) + "_" + strTemp.substring(strTemp.indexOf(" ") + 1, strTemp.length); 
   return strTemp; 
   }
function URLSpaceReplace(strName) {
   strTemp = new String(strName); 
   while(strTemp.indexOf(" ") > 0)strTemp = strTemp.substring(0, strTemp.indexOf(" ")) + "%20" + strTemp.substring(strTemp.indexOf(" ") + 1, strTemp.length); 
   return strTemp; 
   }
function GetCookie(sName) {
   var aCookie = document.cookie.split("; "); 
   for (var i = 0; i < aCookie.length; i++) {
      var aCrumb = aCookie[i].split("="); 
      if (sName == aCrumb[0]) return unescape(aCrumb[1]); 
      }
   return null; 
   }


