function vSearch(info){
if(info.type.selectedIndex == 0){
  alert("Please select a Search Type.");
	info.type.focus();
	return false;
	}
	if(info.qt.value == null || info.qt.value==""){
  alert("Please enter a Search term.");
	info.qt.focus();
	return false;
	}
	else return true;
}

function validate_book(info)
{
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.ezborrow.length; i++)
	{
    if (info.ezborrow[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if this book has already been requested through the EZborrow system.");
      return false;
    }
	//<!-- end radio buttons -->
	
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("A first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("A last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("A valid Temple ID Number is required.");
		info.tuid.focus();
		return false;
	}
  if (info.email.value.indexOf("@temple.edu") == -1 && info.email.value.indexOf("@tuhs.temple.edu") == -1 && info.email.value.indexOf("@tuspm.temple.edu") == -1)
  {
    alert ("A valid Temple e-mail address is required.\n\nIf you do not have a Temple email address, please visit http://tuportal.temple.edu.");
    info.email.focus();
    return false;
  }
	if (info.department.value == null || info.department.value == "")
	{
		alert("Please complete the DEPARTMENT field before submitting this form.");
		info.department.focus();
		return false;
	}
	if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please fill in your phone number.");
		info.phone.focus();
		return false;
	}
	if (info.affiliation.selectedIndex == 0) 
	{
	  alert("Please select your affiliation.");
		info.affiliation.focus();
     return false;
   }
	if (info.cancelDate.value == null || info.cancelDate.value == "" || info.cancelDate.length < 8)
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field before submitting this form.");
		info.cancelDate.focus();
		return false;
	}
	if (info.cancelDate.value.charAt(2) != "-" || info.cancelDate.value.charAt(5) != "-")
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field using the format:\n mm-dd-yy");
		info.cancelDate.focus();
		return false;
	}
	
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.pickup.length; i++)
	{
    if (info.pickup[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("A pickup location is required to properly process your request.");
      return false;
    }
	//<!-- end radio buttons -->

	
	if (info.author.value == null || info.author.value == "" || info.author.length < 1 )
	{
		alert("Please complete the AUTHOR/DIRECTOR field before submitting this form.");
		info.author.focus();
		return false;
	}
	if (info.title.value == null || info.title.value == "" || info.title.length < 1 )
	{
		alert("Please complete the TITLE field before submitting this form.");
		info.title.focus();
		return false;
	}	
  if (info.publishedyear.value == null || info.publishedyear.value == "" || info.publishedyear.length < 1 )
	{
		alert("Please complete the PUBLICATION/PRODUCTION YEAR field before submitting this form.");
		info.publishedyear.focus();
		return false;
	}

	else return true;
}


function validate_thesis(info)
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("A first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("A last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("A valid Temple ID Number is required.");
		info.tuid.focus();
		return false;
	}
  if (info.email.value.indexOf("@temple.edu") == -1 && info.email.value.indexOf("@tuhs.temple.edu") == -1 && info.email.value.indexOf("@tuspm.temple.edu") == -1)
  {
    alert ("A valid Temple e-mail address is required.\n\nIf you do not have a Temple email address, please visit http://tuportal.temple.edu.");
    info.email.focus();
    return false;
  }
	if (info.department.value == null || info.department.value == "")
	{
		alert("Please complete the DEPARTMENT field before submitting this form.");
		info.department.focus();
		return false;
	}
	if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please complete the PHONE field before submitting this form.");
		info.phone.focus();
		return false;
	}
	if(info.affiliation.selectedIndex == 0)
	{
	  alert("Please select a Temple affiliation.");
		info.affiliation.focus();
		return false;
	}
	
	if (info.cancelDate.value == null || info.cancelDate.value == "" || info.cancelDate.length < 8)
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field before submitting this form.");
		info.cancelDate.focus();
		return false;
	}
	if (info.cancelDate.value.charAt(2) != "-" || info.cancelDate.value.charAt(5) != "-")
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field using the format:\n mm-dd-yy");
		info.cancelDate.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.pickup.length; i++)
	{
    if (info.pickup[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("A pickup location is required to properly process your request.");
      return false;
    }
	//<!-- end radio buttons -->
	
		if (info.title.value == null || info.title.value == "" || info.title.length < 1 )
	{
		alert("Please complete the TITLE field before submitting this form.");
		info.title.focus();
		return false;
	}
	
	if (info.author.value == null || info.author.value == "" || info.author.length < 1 )
	{
		alert("Please complete the AUTHOR field before submitting this form.");
		info.author.focus();
		return false;
	}

	if (info.year.value == null || info.year.value == "" || info.year.length < 1 )
	{
		alert("Please complete the YEAR field before submitting this form.");
		info.year.focus();
		return false;
	}
	if (info.grantor.value == null || info.grantor.value == "" || info.grantor.length < 1 )
	{
		alert("Please complete the GRANTOR field before submitting this form.");
		info.grantor.focus();
		return false;
	}


	else return true;
}

function validate_recall(info)
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("A first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("A last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("A valid Temple ID Number is required.");
		info.tuid.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1 )
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
  if (info.email.value.indexOf("@temple.edu") == -1)
  {
    alert ("A valid Temple e-mail address is required.\n\nIf you do not have a Temple email address, please visit http://tuportal.temple.edu.");
    info.email.focus();
    return false;
  }
	if (info.department.value == null || info.department.value == "")
	{
		alert("Please complete the DEPARTMENT field before submitting this form.");
		info.department.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.affiliation.length; i++)
	{
    if (info.affiliation[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please select the appropriate TEMPLE AFFILATION before submitting this form.");
      return false;
    }
	//<!-- end radio buttons -->
	
	if (info.canceldate.value == null || info.canceldate.value == "" || info.canceldate.length < 8)
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field before submitting this form.");
		info.canceldate.focus();
		return false;
	}
	if (info.canceldate.value.charAt(2) != "-" || info.canceldate.value.charAt(5) != "-")
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field using the format:\n mm-dd-yy");
		info.canceldate.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.pickup.length; i++)
	{
    if (info.pickup[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("A pickup location is required to properly process your request.");
      return false;
    }
	//<!-- end radio buttons -->
		if (info.title.value == null || info.title.value == "" || info.title.length < 1 )
	{
		alert("Please complete the TITLE field before submitting this form.");
		info.title.focus();
		return false;
	}
		if (info.author.value == null || info.author.value == "" || info.author.length < 1 )
	{
		alert("Please complete the AUTHOR field before submitting this form.");
		info.author.focus();
		return false;
	}

	if (info.callNum.value == null || info.callNum.value == "" || info.callNum.length < 1 )
	{
		alert("Please complete the CALL NUMBER field before submitting this form.");
		info.callNum.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.edition.length; i++)
	{
    if (info.edition[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if Edition is important.");
      return false;
    }
	//<!-- end radio buttons -->
		
	else return true;
}



function validate_intraBook(info)
{

	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("A first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("A last name is required.");
		info.lastname.focus();
		return false;
	}
		if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("A valid Temple ID Number is required.");
		info.tuid.focus();
		return false;
	}
  if (info.email.value.indexOf("@temple.edu") == -1 && info.email.value.indexOf("@tuhs.temple.edu") == -1 && info.email.value.indexOf("@tuspm.temple.edu") == -1)
  {
    alert ("A valid Temple e-mail address is required.\n\nIf you do not have a Temple email address, please visit http://tuportal.temple.edu.");
    info.email.focus();
    return false;
  }
	if (info.department.value == null || info.department.value == "")
	{
		alert("Please complete the DEPARTMENT field before submitting this form.");
		info.department.focus();
		return false;
	}
	if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please complete the PHONE field before submitting this form.");
		info.phone.focus();
		return false;
	}

if (info.affiliation.selectedIndex == 0)
	 {
	   alert("Please select a Temple Affiliation.");
		 info.affiliation.focus();
     return false;
    }
	
if (info.campus.selectedIndex == 0)
	 {
	   alert("Please select a Campus/Library Affiliation.");
		 info.campus.focus();
     return false;
    }
	
	 if (info.library.selectedIndex == 0) 
	 {
		 alert("Please select a LENDING LIBRARY.");
		 info.library.focus();
     return false;
   }
		
	if (info.campus.selectedIndex == 1){
	
	 if (info.library.selectedIndex == 5 || info.library.selectedIndex == 6 || info.library.selectedIndex == 7 || info.library.selectedIndex == 8)
	    {
		    alert("If you are located on Main Campus, you may only request books and articles from Ambler, Health Sciences, and Harrisburg libraries.");
        return false;
		  }
			
		}
		
  if (info.campus.selectedIndex == 3){
	
	 if (info.library.selectedIndex == 2)
	    {
		    alert("If you are located on Harrisburg Campus, you may not request books and articles from Harrisburg library using this service.");
        return false;
		  }
		}
	if (info.campus.selectedIndex == 4){
	
	 if (info.library.selectedIndex == 3)
	    {
		    alert("If you are located at HSL Ginsburg, you may not request books and articles from HSL Ginsburg.");
        return false;
		  }
		}


 if (info.campus.selectedIndex == 2){
	 if (info.library.selectedIndex == 1)
	    {
		    alert("If you are located at Ambler Campus, you may not request books and articles from Ambler Campus.");
        return false;
		  }
		}

 		
	if (info.cancelDate.value == null || info.cancelDate.value == "" || info.cancelDate.length < 8)
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field before submitting this form.");
		info.cancelDate.focus();
		return false;
	}
	if (info.cancelDate.value.charAt(2) != "-" || info.cancelDate.value.charAt(5) != "-")
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field using the format:\n mm-dd-yy");
		info.cancelDate.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.pickup.length; i++)
	{
    if (info.pickup[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("A pickup location is required to properly process your request.");
      return false;
    }
	//<!-- end radio buttons -->
	
		if (info.title.value == null || info.title.value == "" || info.title.length < 1 )
	{
		alert("Please complete the TITLE field before submitting this form.");
		info.title.focus();
		return false;
	}
	
	if (info.author.value == null || info.author.value == "" || info.author.length < 1 )
	{
		alert("Please complete the AUTHOR field before submitting this form.");
		info.author.focus();
		return false;
	}

	if (info.callNum.value == null || info.callNum.value == "" || info.callNum.length < 1 )
	{
		alert("Please complete the CALL NUMBER field before submitting this form.");
		info.callNum.focus();
		return false;
	}

	else return true;
}

		
function validate_intraPhoto(info)
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("A first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("A last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("A valid Temple ID Number is required.");
		info.tuid.focus();
		return false;
	}
  if (info.email.value.indexOf("@temple.edu") == -1 && info.email.value.indexOf("@tuhs.temple.edu") == -1 && info.email.value.indexOf("@tuspm.temple.edu") == -1)
  {
    alert ("A valid Temple e-mail address is required.\n\nIf you do not have a Temple email address, please visit http://tuportal.temple.edu.");
    info.email.focus();
    return false;
  }
	if (info.department.value == null || info.department.value == "")
	{
		alert("Please complete the DEPARTMENT field before submitting this form.");
		info.department.focus();
		return false;
	}
	if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please enter your phone number.");
		info.phone.focus();
		return false;
	}
	if (info.affiliation.selectedIndex == 0)
	{
	  alert("Please select your Temple Affiliation.");
		info.affiliation.focus();
		return false;
	}
	if (info.cancelDate.value == null || info.cancelDate.value == "" || info.cancelDate.length < 8)
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field before submitting this form.");
		info.cancelDate.focus();
		return false;
	}
	if (info.cancelDate.value.charAt(2) != "-" || info.cancelDate.value.charAt(5) != "-")
	{
		alert("Please complete the CANCEL REQUEST AFTER DATE field using the format:\n mm-dd-yy");
		info.cancelDate.focus();
		return false;
	}
	if (info.campus.selectedIndex == 0)
	{
	  alert("Please select your Campus Affiliation.");
		info.campus.focus();
		return false;
	}
	
	if (info.campus.selectedIndex == 1){
	
	 if (info.library.selectedIndex == 2 || info.library.selectedIndex == 6 || info.library.selectedIndex == 7)
	    {
		    alert("If you are located on Main Campus, you may only request books and articles from Ambler, HSL, and Harrisburg libraries.");
        return false;
		  }
			
		}	
		
	if (info.campus.selectedIndex == 4){
	
	 if (info.library.selectedIndex == 4)
	    {
		    alert("If you are located at HSC Ginsburg, you may not request books and articles from HSL Ginsburg.");
        return false;
		  }
			
		}	
		
			
  if (info.campus.selectedIndex == 2){
		 if (info.library.selectedIndex == 1)
	    {
		    alert("If you are located at Ambler Campus, you may not request books and articles from Ambler Campus.");
        return false;
		  }
		}
		
  if (info.library.selectedIndex == 0) 
		{
		  alert("Please select the library where the journal article is located.");
			info.library.focus();
      return false;
    }
	
	if (info.jTitle.value == null || info.jTitle.value == "" || info.jTitle.length < 1 )
	{
		alert("Please complete the JOURNAL TITLE field before submitting this form.");
		info.jTitle.focus();
		return false;
	}
	if (info.jVIY.value == null || info.jVIY.value == "" || info.jVIY.length < 1 )
	{
		alert("Please complete the JOURNAL VOLUME, ISSUE, and YEAR field before submitting this form.");
		info.jVIY.focus();
		return false;
	}

	if (info.jpages.value == null || info.jpages.value == "" || info.jpages.length < 1 )
	{
		alert("Please complete the JOURNAL PAGES field before submitting this form.");
		info.jpages.focus();
		return false;
	}
	if (info.author.value == null || info.author.value == "" || info.author.length < 1 )
	{
		alert("Please complete the AUTHOR field before submitting this form.");
		info.author.focus();
		return false;
	}
	if (info.title.value == null || info.title.value == "" || info.title.length < 1 )
	{
		alert("Please complete the TITLE field before submitting this form.");
		info.title.focus();
		return false;
	}


	else return true;
}

function validate_photocopy(info)
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("A first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("A last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("A valid Temple ID Number is required.");
		info.tuid.focus();
		return false;
	}
  if (info.email.value.indexOf("@temple.edu") == -1 && info.email.value.indexOf("@tuhs.temple.edu") == -1 && info.email.value.indexOf("@tuspm.temple.edu") == -1)
  {
    alert ("A valid Temple e-mail address is required.\n\nIf you do not have a Temple email address, please visit http://tuportal.temple.edu.");
    info.email.focus();
    return false;
  }
	if (info.department.value == null || info.department.value == "")
	{
		alert("Please complete the DEPARTMENT field before submitting this form.");
		info.department.focus();
		return false;
	}
		if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please complete the PHONE field before submitting this form.");
		info.phone.focus();
		return false;
	}
  if (info.affiliation.selectedIndex == 0) 
		{
		  alert("Please select your Temple affiliation.");
			info.affiliation.focus();
      return false;
    }
	  if (info.caffiliation.selectedIndex == 0) 
		{
		  alert("Please select your Campus/Library affiliation.");
			info.caffiliation.focus();
      return false;
    }
		if (info.cancelDate.value == null || info.cancelDate.value == "" || info.cancelDate.length < 8)
	{
		alert("Please complete the NOT NEEDED AFTER field before submitting this form.");
		info.cancelDate.focus();
		return false;
	}
	if (info.cancelDate.value.charAt(2) != "-" || info.cancelDate.value.charAt(5) != "-")
	{
		alert("Please complete the NOT NEEDED AFTER field using the format:\n mm-dd-yy");
		info.cancelDate.focus();
		return false;
	}
	if (info.haveby.value.length > 1) 
	{
	  if (info.reason.value == null || info.reason.value.length < 1){
		  alert("You must supply a reason for requesting rush service.");
			info.reason.focus();
		  return false;
			}
	}
	if (info.jtitle.value == null || info.jtitle.value == "" || info.jtitle.length < 1 )
	{
		alert("Please complete the JOURNAL TITLE field before submitting this form.");
		info.jtitle.focus();
		return false;
	}
	if (info.bibInfo.value == null || info.bibInfo.value == "" || info.bibInfo.length < 1 )
	{
		alert("Please complete the JOURNAL VOLUME, ISSUE, MONTH, YEAR field before submitting this form.");
		info.bibInfo.focus();
		return false;
	}

	if (info.jpages.value == null || info.jpages.value == "" || info.jpages.length < 1 )
	{
		alert("Please complete the JOURNAL PAGES field before submitting this form.");
		info.jpages.focus();
		return false;
	}
	if (info.author.value == null || info.author.value == "" || info.author.length < 1 )
	{
		alert("Please complete the AUTHOR field before submitting this form.");
		info.author.focus();
		return false;
	}
	if (info.title.value == null || info.title.value == "" || info.title.length < 1 )
	{
		alert("Please complete the TITLE field before submitting this form.");
		info.title.focus();
		return false;
	}

	else return true;
}



function validate_ref(info)
{
	if (info.theName.value == null || info.theName.value == "")
	{
		alert("A name is required.");
		info.theName.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
  if (info.status.selectedIndex == 0) 
		{
		  alert("Please specify your status.");
			info.status.focus();
      return false;
    }
	if (info.question.value == null || info.question.value == "")
	{
		alert("What is your question?");
		info.question.focus();
		return false;
	}
	else return true;
}

function validate_bib_withdraw(info)
{
	if (info.name.value == null || info.name.value == "")
	{
		alert("A name is required.");
		info.name.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
  if (info.department.value == null || info.department.value == "") 
		{
		  alert("Please specify your department.");
			info.department.focus();
      return false;
    }
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.barcoded.length; i++)
	{
    if (info.barcoded[i].checked) 
		{
      myOption = i;
			//alert(myOption);
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if item is BARCODED before submitting this form.");
      return false;
    }
	//<!-- end radio buttons -->
	
	if (info.callNum.value == null && myOption == 1 || info.callNum.value == "" && myOption == 1)
	{
		alert("A CALL NUMBER is required if the item is not barcoded.");
		info.callNum.focus();
		return false;
	}
	
		if (info.barcode1.value == null && myOption == 0 || info.barcode1.value == "" && myOption == 0)
	{
		alert("A barcode is required if this item is barcoded.");
		info.barcode1.focus();
		return false;
	}

			//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.wdallcop.length; i++)
	{
    if (info.wdallcop[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if all SINGLE MONOGRAPH copies should be withdrawn.");
      return false;
    }
	//<!-- end radio buttons -->
  //<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.wdallvol.length; i++)
	{
    if (info.wdallvol[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if all VOLUMES should be withdrawn.");
      return false;
    }
	//<!-- end radio buttons -->
	
	else return true;
}

function validate_bib_transfer(info)
{
	if (info.name.value == null || info.name.value == "")
	{
		alert("A name is required.");
		info.name.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
  if (info.department.value == null || info.department.value == "") 
		{
		  alert("Please specify your department.");
			info.department.focus();
      return false;
    }
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.barcoded.length; i++)
	{
    if (info.barcoded[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if item is BARCODED before submitting this form.");
      return false;
    }
	//<!-- end radio buttons -->
	
	if (info.callNum.value == null && myOption == 1 || info.callNum.value == "" && myOption == 1)
	{
		alert("A CALL NUMBER is required if the item is not barcoded.");
		info.callNum.focus();
		return false;
	}
	
		if (info.barcode1.value == null && myOption == 0 || info.barcode1.value == "" && myOption == 0)
	{
		alert("A barcode is required if this item is barcoded.");
		info.barcode1.focus();
		return false;
	}
	
	if (info.numbertran.value == null || info.numbertran.value == "")
	{
		alert("Please indicate the number of copies/volumes transferred.");
		info.numbertran.focus();
		return false;
	}

  //<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.old.length; i++)
	{
    if (info.old[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if any copies/volumes remain at old location.");
      return false;
    }
	//<!-- end radio buttons -->
	
	if (info.fromloc.value == null || info.fromloc.value == "")
	{
		alert("Please indicate the location to be transferred from.");
		info.fromloc.focus();
		return false;
	}
	if (info.toloc.value == null || info.toloc.value == "")
	{
		alert("Please indicate the location to be transferred to.");
		info.toloc.focus();
		return false;
	}
	
	  //<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.latestin.length; i++)
	{
    if (info.latestin[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if item is 'Latest In'.");
      return false;
    }
	//<!-- end radio buttons -->
	
	
		  //<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.matertype.length; i++)
	{
    if (info.matertype[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate the material type of the item.");
      return false;
    }
	//<!-- end radio buttons -->
	
	
	else return true;
}

function validate_bib_problem(info)
{
	if (info.name.value == null || info.name.value == "")
	{
		alert("A name is required.");
		info.name.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
  if (info.department.value == null || info.department.value == "") 
		{
		  alert("Please specify your department.");
			info.department.focus();
      return false;
    }
		
		if (info.callNum.value == null && info.bcngrn.value == null && info.barcode1.value == null) {
		  alert("Please supply a Call Number OR a BCN/GRSN OR a Barcode Number.");
			info.callNum.focus();
			return false;
		}
		if (info.callNum.value == "" && info.bcngrn.value == "" && info.barcode1.value == "") {
		  alert("Please supply a Call Number OR a BCN/GRSN OR a Barcode Number.");
			info.callNum.focus();
			return false;
		}
		if (info.discrepancy.value == null || info.discrepancy.value == "") {
		  alert("Please specify a problem or discrepancy.");
		  info.discrepancy.focus();
		  return false;
	  }
		
	else return true;
}

function validate_coldev(info)
{
	if (info.name.value == null || info.name.value == "")
	{
		alert("A name is required.");
		info.name.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
  if (info.phone.value == null || info.phone.value == "") 
		{
		  alert("Please specify your department.");
			info.department.focus();
      return false;
    }
	if (info.address.value == null || info.address.value == "") 
		{
		  alert("Please specify your address.");
			info.department.focus();
      return false;
    }
		
  //<!-- radio buttons -->
	
  myOption = -1;
  for (i=0; i<info.check.length; i++)
	{
    if (info.check[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate your Temple affiliation.");
      return false;
    }
	//<!-- end radio buttons -->	
	
	  //<!-- radio buttons -->
	
  myOption = -1;
  for (i=0; i<info.type.length; i++)
	{
    if (info.type[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate the type of material requested.");
      return false;
    }
	//<!-- end radio buttons -->	
	
		if (info.author.value == null || info.author.value == "") 
		{
		  alert("Please specify the author.");
			info.author.focus();
      return false;
    }
			if (info.title.value == null || info.title.value == "") 
		{
		  alert("Please specify a title.");
			info.title.focus();
      return false;
    }
			if (info.publisher.value == null || info.publisher.value == "") 
		{
		  alert("Please specify the publisher.");
			info.publisher.focus();
      return false;
    }
			if (info.year.value == null || info.year.value == "") 
		{
		  alert("Please specify the publication year.");
			info.year.focus();
      return false;
    }
					if (info.source.value == null || info.source.value == "") 
		{
		  alert("Please specify the source of the information.");
			info.source.focus();
      return false;
    }
					if (info.reason.value == null || info.reason.value == "") 
		{
		  alert("Please specify the reason for this request.");
			info.reason.focus();
      return false;
    }
		
	else return true;
}

function validate_libinst (info) {
	  if (info.level.selectedIndex == 0) 
		{
		  alert("Please select your status level.");
			info.level.focus();
      return false;
    }
	
  myOption = -1;
  for (i=0; i<info.relevance.length; i++)
	{
    if (info.relevance[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate the relevance to your assignment.");
      return false;
    }
	
  myOption = -1;
  for (i=0; i<info.presentation.length; i++)
	{
    if (info.presentation[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate the quality of the instructor's presentation style.");
      return false;
    }
	
  myOption = -1;
  for (i=0; i<info.overall.length; i++)
	{
    if (info.overall[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate your overall rating of the instruction session.");
      return false;
    }
			else return true;
}


function validate_libsession(info)
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("A first name is required.");
		info.firstname.focus();
		return false;
	}
		if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("A last name is required.");
		info.lastname.focus();
		return false;
	}
		if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please provide a phone number where you can be contacted.");
		info.phone.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
  if (info.department.value == null || info.department.value == "") 
		{
		  alert("Please specify your department.");
			info.department.focus();
      return false;
    }
		
  myOption = -1;
  for (i=0; i<info.level.length; i++)
	{
    if (info.level[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate the student level for this session.");
      return false;
    }

  if (info.title.value == null || info.title.value == "") 
		{
		  alert("Please provide the course title.");
			info.title.focus();
      return false;
    }
  if (info.num.value == null || info.num.value == "") 
		{
		  alert("Please indicate the course number.");
			info.num.focus();
      return false;
    }
  if (info.day.value == null || info.day.value == "") 
		{
		  alert("Please specify the days the class meets.");
			info.day.focus();
      return false;
    }
  if (info.time.value == null || info.time.value == "") 
		{
		  alert("Please indicate the time the class meets.");
			info.time.focus();
      return false;
    }
  if (info.count.value == null || info.count.value == "") 
		{
		  alert("Please specify the number of expected students.");
			info.count.focus();
      return false;
    }
  if (info.date.value == null || info.date.value == "") 
		{
		  alert("Please request a specific date for the session.");
			info.date.focus();
      return false;
    }

  if (info.sendto.selectedIndex == 0) 
		{
		  alert("Please select a campus location for the session.");
			info.sendto.focus();
      return false;
    }
  if (info.scope.value == null || info.scope.value == "") 
		{
		  alert("Please supply the scope of this request.");
			info.scope.focus();
      return false;
    }
		
	else return true;
}

function suggCheck(info) {
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
 if (info.subject.value == null || info.subject.value == "") 
 {
		alert("Please fill in the Subject: field.");
		info.subject.focus();
		return false;
	}
 if (info.comments.value == null || info.comments.value == "")
  {
		alert("Please fill in the Comments: field.");
		info.comments.focus();
		return false;
	}
	else return true;
}


function reserveSearch(el){
 if(el.searcharg.value==null || el.searcharg.value==""){
   alert("Please enter a course or instructor name");
	 el.searcharg.focus();
	 return false;
	 }
	 else return true;
}




function codeCheck(){
  //alert(document.forms[1].elements.length);
  var sendalert="false";
	var i;

  for (i=0; i<document.forms[1].elements.length; i++){
    if(document.forms[1].elements[i].value.indexOf("http:") > -1){sendalert="true";}
  }
  if (sendalert=="true"){
	  alert("HTML code is not allowed as form input. Your IP address has been logged.");
/*		
	  for (i=0; i<document.forms[1].elements.length; i++){
		  if(document.forms[1].elements[i].value!="Submit Request"){
		    document.forms[1].elements[i].value="";
			}
	  }
*/
  window.location="lib_instruction.jsp?logged=1";
	return false;
  }
	else return true;
}

function validate_rush(info)
{
	if (info.date.value == null || info.date.value == "")
	{
		alert("A date is required.");
		info.date.focus();
		return false;
	}
	if (info.staff.value == null || info.staff.value == "")
	{
		alert("A library staff name is required.");
		info.staff.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf("@") < 1 )
	{
		alert ("A valid staff e-mail address is also required.");
		info.email.focus();
		return false;
	}
	if (info.department.value == null || info.department.value == "")
	{
		alert("Please complete the DEPARTMENT field before submitting this form.");
		info.department.focus();
		return false;
	}
	if (info.patron.value == null || info.patron.value == "")
	{
		alert("Patron name is required.");
		info.patron.focus();
		return false;
	}
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.affiliation.length; i++)
	{
    if (info.affiliation[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please select the appropriate PATRON AFFILATION before submitting this form.");
      return false;
    }
	//<!-- end radio buttons -->
  
  
  if (info.email2.value == null || info.email2.value == "") {
    if (info.phone.value == null || info.phone.value == ""){
      alert("Either a patron e-mail address or phone number is required.");
      return false;
    }
	}
  if (info.phone.value == null || info.phone.value == "") {
    if (info.email2.value.indexOf("@") == -1 || info.email2.value.indexOf(".") < 1 || info.email2.value.indexOf("@") < 1 )
	  {
		  alert ("A valid patron e-mail address is also required.");
		  info.email2.focus();
		  return false;
	  }
  }

  
	if (info.title.value == null || info.title.value == "")
	{
		alert("Please supply the Title of the resource requested.");
		info.title.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.pickup.length; i++)
	{
    if (info.pickup[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("A pickup location is required to properly process your request.");
      return false;
    }
	//<!-- end radio buttons -->

	
	if (info.date2.value == null || info.date2.value == "")
	{
		alert("Please indicate a 'Need by' date.");
		info.date2.focus();
		return false;
	}
	
	else return true;
}

function validate_adjunct(info) 
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("Your first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("Your last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.email.value.indexOf("@temple.edu") == -1)
	{
		alert ("A valid Temple e-mail address is also required.");
		info.email.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("Please supply a valid Temple ID number.");
		info.tuid.focus();
		return false;
	}
	if (info.address.value == null || info.address.value == "")
	{
		alert("Your mailing address is required.");
		info.address.focus();
		return false;
	}
  
	if (info.cphone.value == null || info.cphone.value == "")
	{
		alert("Please supply a phone number where you can be reached on campus.");
		info.cphone.focus();
		return false;
	}
		if (info.hphone.value == null || info.hphone.value == "")
	{
		alert("Please supply your home/cell phone number(s).");
		info.hphone.focus();
		return false;
	}

	if (info.department.value == null || info.department.value == "")
	{
		alert("Please indicate the department to which you are associated.");
		info.department.focus();
		return false;
	}
	if (info.startdate.value == null || info.startdate.value == "")
	{
		alert("Please supply the start date of your appointment.");
		info.startdate.focus();
		return false;
	}
	if (info.enddate.value == null || info.enddate.value == "")
	{
		alert("Please supply the end date of your appointment.");
		info.enddate.focus();
		return false;
	}
	if (info.deptfirstname.value == null || info.deptfirstname.value == "")
	{
		alert("Please supply the first name of your departmental contact person.");
		info.deptfirstname.focus();
		return false;
	}
	if (info.deptlastname.value == null || info.deptlastname.value == "")
	{
		alert("Please supply the last name of your departmental contact person.");
		info.deptlastname.focus();
		return false;
	}
	if (info.title.value == null || info.title.value == "")
	{
		alert("Please supply the departmental contact's title.");
		info.title.focus();
		return false;
	}
	if (info.deptdepartment.value == null || info.deptdepartment.value == "")
	{
		alert("Please supply the name of your department.");
		info.deptdepartment.focus();
		return false;
	}
	if (info.deptcphone.value == null || info.deptcphone.value == "")
	{
		alert("Please supply the phone number of your departmental contact.");
		info.deptcphone.focus();
		return false;
	}
	if (info.deptEmail.value.indexOf("@temple.edu") == -1)
	{
		alert("Please supply the e-mail address of your departmental contact.\nA confirmation message will be sent to this address.");
		info.deptEmail.focus();
		return false;
	}

	
	else return true;
}


function validate_erroneous(info){

	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("Your first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("Your last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.email.value.indexOf("@temple.edu") == -1)
	{
		alert ("A valid Temple e-mail address is also required.");
		info.email.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("Please supply a valid Temple ID number.");
		info.tuid.focus();
		return false;
	}
	if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please supply a home/cell/campus phone number.");
		info.phone.focus();
		return false;
	}
	if (info.title.value == null || info.title.value == "")
	{
		alert("Please indicate the title of the book in question.");
		info.title.focus();
		return false;
	}
		if (info.author.value == null || info.author.value == "")
	{
		alert("Please indicate the author of the book in question.");
		info.author.focus();
		return false;
	}
		if (info.callNumber.value == null || info.callNumber.value == "")
	{
		alert("Please indicate the call number of the book in question.");
		info.callNumber.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.affiliation.length; i++)
	{
    if (info.affiliation[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate your Temple affiliation.");
      return false;
    }
	//<!-- end radio buttons -->
	
	//<!-- radio buttons -->
	var lostCheck;
  myOption = -1;
  for (i=0; i<info.lostid.length; i++)
	{
    if (info.lostid[i].checked) 
		{
      myOption = i;
			lostCheck = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if your ID was ever lost or stolen.");
      return false;
    }
	//<!-- end radio buttons -->
	//<!-- nested radio buttons -->
	if (lostcheck == 0) {
	    myOption = -1;
  		for (i=0; i<info.reported.length; i++) {
    	  if (info.reported[i].checked) { 
			    myOption = i;
    	 }
  		}
  		if (myOption == -1) {
       	alert("Please indicate where the loss was reported.");
       	return false;
    	}
	
	}
	//<!-- end nested radio buttons -->
		//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.loanedid.length; i++)
	{
    if (info.loanedid[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if you have ever loaned your ID.");
      return false;
    }
	//<!-- end radio buttons -->
		//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.favor.length; i++)
	{
    if (info.favor[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if you ever checked out books for a friend using your ID.");
      return false;
    }
	//<!-- end radio buttons -->
		//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.selfcheck.length; i++)
	{
    if (info.selfcheck[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if you ever use the self-check machines.");
      return false;
    }
	//<!-- end radio buttons -->
	
	else return true;

}



function validate_returned(info)
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("Your first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("Your last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.email.value.indexOf("@temple.edu") == -1)
	{
		alert ("A valid Temple e-mail address is also required.");
		info.email.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("Please supply a valid Temple ID number.");
		info.tuid.focus();
		return false;
	}
	if (info.phone.value == null || info.phone.value == "")
	{
		alert("Please supply your home/cell/campus phone number(s).");
		info.phone.focus();
		return false;
	}
	if (info.title.value == null || info.title.value == "")
	{
		alert("Please supply the title of the book in question.");
		info.title.focus();
		return false;
	}
	if (info.author.value == null || info.author.value == "")
	{
		alert("Please supply the author's name of the book in question.");
		info.author.focus();
		return false;
	}
	if (info.callNumber.value == null || info.callNumber.value == "")
	{
		alert("Please supply the call number of the book in question.");
		info.callNumber.focus();
		return false;
	}
			//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.affiliation.length; i++)
	{
    if (info.affiliation[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate your Temple affiliation.");
      return false;
    }
	//<!-- end radio buttons -->
	
	if (info.comments.value == null || info.comments.value == "")
	{
		alert("Please indicate at least the time and place of the return.");
		info.comments.focus();
		return false;
	}

	
	else return true;
}






function validate_search(info)
{
	if (info.firstname.value == null || info.firstname.value == "")
	{
		alert("Your first name is required.");
		info.firstname.focus();
		return false;
	}
	if (info.lastname.value == null || info.lastname.value == "")
	{
		alert("Your last name is required.");
		info.lastname.focus();
		return false;
	}
	if (info.email.value.indexOf("@temple.edu") == -1)
	{
		alert ("A valid Temple e-mail address is also required.");
		info.email.focus();
		return false;
	}
	if (info.tuid.value == null || info.tuid.value == "")
	{
		alert("Please supply a valid Temple ID number.");
		info.tuid.focus();
		return false;
	}
	if (info.title.value == null || info.title.value == "")
	{
		alert("Please supply the title of the book in question.");
		info.title.focus();
		return false;
	}
	if (info.author.value == null || info.author.value == "")
	{
		alert("Please supply the author's name of the book in question.");
		info.author.focus();
		return false;
	}
	if (info.callNumber.value == null || info.callNumber.value == "")
	{
		alert("Please supply the call number of the book in question.");
		info.callNumber.focus();
		return false;
	}
			//<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.affiliation.length; i++)
	{
    if (info.affiliation[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate your Temple affiliation.");
      return false;
    }
	//<!-- end radio buttons -->
	
	
	else return true;
}

function validate_dep(info)
{
  //<!-- radio buttons -->
  myOption = -1;
  for (i=0; i<info.subject.length; i++)
	{
    if (info.subject[i].checked) 
		{
      myOption = i;
    }
  }
  if (myOption == -1) 
	  {
      alert("Please indicate if this request is for a book/bound journal or an article.");
      return false;
    }
	//<!-- end radio buttons -->
	
	if (info.name.value == null || info.name.value == "")
	{
		alert("Your name is required.");
		info.name.focus();
		return false;
	}
	if (info.email.value.indexOf("@") == -1 || info.email.value.indexOf(".") < 1)
	{
		alert ("Please enter a valid e-mail address.");
		info.email.focus();
		return false;
	}
	
	//<!-- radio buttons -->
  myOption2 = -1;
  for (i=0; i<info.affiliation.length; i++)
	{
    if (info.affiliation[i].checked) 
		{
      myOption2 = i;
    }
  }
  if (myOption2 == -1) 
	  {
      alert("Please indicate your Temple affiliation.");
      return false;
    }
	//<!-- end radio buttons -->
	

if (myOption==0){
  
	//<!-- radio buttons -->
  myOption3 = -1;
  for (i=0; i<info.pickup.length; i++)
	{
    if (info.pickup[i].checked) 
		{
      myOption3 = i;
    }
  }
  if (myOption3 == -1) 
	  {
      alert("Please indicate a pickup location.");
      return false;
    }
 }	



	if (info.citation.value == null || info.citation.value == "")
	{
		alert("Please supply as much bibliographic information as possible.");
		info.citation.focus();
		return false;
	}

	
	
	else return true;
}
