<!--
function newwin(targetURL) 
{ 
	secondwin = window.open(targetURL,'win2','width=650,height=400,resizable=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,menubar=yes,');
	secondwin.focus();
} 

function smallPopup(targetURL) 
{ 
	secondwin = window.open(targetURL,'win2','width=430,height=500,resizable=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,menubar=yes,');
	secondwin.focus();
} 

function chatWindow(targetURL) 
{ 
	secondwin = window.open(targetURL,'win2','width=550,height=610,resizable=no,scrollbars=yes,toolbar=yes,location=no,status=yes,menubar=yes,');
	secondwin.focus();
}

function asklibrarian_popup(targetURL) 
{ 
	secondwin = window.open(targetURL,'win2','width=400,height=550,resizable=no,scrollbars=yes,toolbar=no,location=no,status=yes,menubar=no,');
	secondwin.focus();
} 
function asklibrarian_popup2(targetURL) 
{ 
    document.getElementById('asklibimage').src='http://library.ucr.edu/images/asklibrarian_button_loaded.gif';
    secondwin = window.open(targetURL,'win2','width=260,height=320,resizable=no,scrollbars=yes,toolbar=no,location=no,status=yes,menubar=no,');
    secondwin.focus();
} 
function comments_popupwin() 
{ 
    secondwin = window.open('http://library.ucr.edu/?support=sitecontact','win2','width=640,height=550,resizable=no,scrollbars=yes,toolbar=no,location=no,status=yes,menubar=no,');
    secondwin.focus();
} 

function gotosite(site) {
  if (site != "") {
    parent.location=site
  } 
}

function formHandler(form) {
var myindex=form.site.selectedIndex
	if(form.site.options[myindex].value != "0") 
	{
		window.open(form.site.options[myindex].value, target="_self");
	}
}


// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
  function Submit()
  {
    document.myform.submit();
  }

  function Reset()
  {
    document.myform.title.value = "";
    document.myform.editor.value = "";
  }

  /*
  
  function createQCObject() { 
   var req;     
   if(window.XMLHttpRequest){ 
      // Firefox, Safari, Opera... 
      req = new XMLHttpRequest(); 
   } else if(window.ActiveXObject) { 
      // Internet Explorer 5+ 
      req = new ActiveXObject("Microsoft.XMLHTTP"); 
   } else { 
      alert('Problem creating the XMLHttpRequest object'); 
   } 
   return req; 
} 

// Make the XMLHttpRequest object
 
var http = createQCObject(); 
function searchScottyAJAX(searchquery) {

    var CENTAURAjaxTimeout=setTimeout("ajaxTimeout();",4000); 
    http.open('get', 'http://library.ucr.edu/redirect/?scotty='+searchquery);
       http.onreadystatechange = function() {
        if(http.readyState == 4 && http.status == 200) { 
            clearTimeout(CENTAURAjaxTimeout); 
              var response = http.responseText;
              if(response) { 
                document.getElementById("scottySearchMatch").innerHTML = http.responseText; 
              } 
           } 
    }  
       http.send(null); 
}


function ajaxTimeout(){
    http.abort();
   document.getElementById("scottySearchMatch").innerHTML = 'Scotty Results not available.';
}
  */
  
//-->