function clearField(xx) {
  if (xx.defaultValue==xx.value) xx.value = ""
}
function returnTxt(xx) {
  if (xx.value=="") xx.value = "Quick Search"
}
// Link Fade 
<!--
function KW_s(r, g, b, el) {
    d=document;hr=r.toString(16);hg=g.toString(16);hb=b.toString(16);
	hr=(hr.length==1)?"0"+hr:hr;hg=(hg.length==1)?"0"+hg:hg;hb=(hb.length==1)?"0"+hb:hb;
	if (d.getElementById) d.getElementById(el).style.color="#"+hr+hg+hb;
}

function KW_c(a,b,s,i) { return Math.floor(a*((s-i)/s)+b*(i/s)) }

function KW_fade(r,g,b,e,n,l,s,o){
    for(i=0;i<=s;i++)setTimeout("KW_s("+KW_c(r,e,s,i)+","+KW_c(g,n,s,i)+","+KW_c(b,l,s,i)+",'"+o+"');",i*s);
}
//--> Link Fade End





var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var NS6 = (bName == "Netscape" && bVer >= 6);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var IE5 = (bName == "Microsoft Internet Explorer" && bVer >= 5);
var IE6 = (bName == "Microsoft Internet Explorer" && bVer >= 6);


function dj_hideShow(obj)
{
  if(IE4)
  {
    with(obj.style)
    {
      display = (display == 'none') ? '' : 'none';
    }
  }
}


function dj_getLeft(obj)
{
  xPos = 0;
  
  if(IE4)
  {
    xPos = eval(obj).offsetLeft;
    tempEl = eval(obj).offsetParent;
  
    while (tempEl != null)
    {
      xPos += tempEl.offsetLeft;
      tempEl = tempEl.offsetParent;
    }
  }
  
  return xPos;
}

function dj_getTop(obj)
{
  yPos = 0;
  if(IE4 || NS6)
  {
    yPos = eval(obj).offsetTop;
    tempEl = eval(obj).offsetParent;
  
    while (tempEl != null)
    {
      yPos += tempEl.offsetTop;
      tempEl = tempEl.offsetParent;
    }
  }
  
  return yPos;
}


function dj_switchImg()
{
  var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
  for (rem=0; rem < (dj_switchImg.arguments.length-2); rem+=3)
  {
    store = dj_switchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
    
    if ((store.indexOf('document.layers[')==0 && document.layers==null) || (store.indexOf('document.all[')==0 && document.all==null))
         store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
         obj = eval(store);
    
    if (obj != null)
    {
      switcher[keep++] = obj;
      switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
      obj.src = dj_switchImg.arguments[rem+2];
    }
  }
  document.Data = switcher;
}

function dj_restoreImg()
{
  if (document.Data != null)
    for (var rem=0; rem<(document.Data.length-1); rem+=2)
      document.Data[rem].src=document.Data[rem+1];
}


function dj_toggleImg(img1,img2)
{
  if(IE4)
  {
    img1.style.display = (img1.style.display == 'none') ? '' : 'none';
    img2.style.display = (img2.style.display == 'none') ? '' : 'none';
  }
}



function dj_openWindow(page,width,height,pos,options)
{
  if(pos=="random")
  {
    LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-width)):100;
    TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-height)-75)):100;
  }

  else if(pos=="center")
  {
    LeftPosition=(screen.width)?(screen.width-width)/2:100;
    TopPosition=(screen.height)?(screen.height-height)/2:100;
  }
  
  else
  {
    LeftPosition=pos;
    TopPosition=pos;
  }

  windowDimensions = "width="       +width+ ","
                   + "height="      +height+ ",";
                
  windowLocation = "left="    +LeftPosition+ ","
                 + "screenX=" +LeftPosition+ ","
                 + "top="     +TopPosition+ ","
                 + "screenY=" +TopPosition;
                 
 if(options != "")
   options += ",";
 
  window.open(page,null,options + windowDimensions + windowLocation).focus()
}


function dj_toOpener(loc,closeWindow)
{
  window.opener.location = loc;
  window.opener.focus();
  
  if(closeWindow)
    window.close();
}



if(!window.saveInnerWidth)
{
  window.onresize = resize;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resize()
{
    if (saveInnerWidth < window.innerWidth || saveInnerWidth > window.innerWidth || saveInnerHeight > window.innerHeight || saveInnerHeight < window.innerHeight ) 
        window.history.go(0);
}