function clearDefault(el){
  if (el.defaultValue==el.value){
      el.value = "";
  }
}

function redirect(Form,Field){
//redirect the user to selected location
     var selindex;
     var selvalue;
   
     selindex=eval('document.'+ Form + '.' + Field + '.selectedIndex');     
     selvalue=eval('document.'+ Form + '.' + Field + '.options['+ selindex +'].value');
     
	 if(selindex!=0){
        window.location=selvalue;     
     }   
    //don't submit the form
}

// Function to Change all Images over a Set size
// so that no overlapping is done.  This should only be
// used on pages with Layout3.

function CheckAllImages()  
{
  var loop;
  var maxwidth;
  maxwidth = 390;
 
  for (loop = 0; loop < document.images.length; loop++) 
  {
    if(document.images[loop].width > maxwidth)
	{
	   document.images[loop].width=maxwidth;
	}
  } 
}

//This function pops up a small new window for the email functionality

function popwindow(url)

{window.open(url, 'EMAIL','status=no,scrollbars=yes,resizable=no,width=475,height=560');}

