// JavaScript for the purple search bar function open_window(url) { mywin = window.open(url,"win",'resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,left=250,top=175,width=500,height=500'); } function open_metalib(url) { newwindow = window.open(url,"win","directories=0,left=20,location=1,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1") ; } function encode_searchterm(stringin){ encoded_term = ''; for (i=0; iConnecting to database ..." ; var client_ip = '38.103.63.59' ; var client_ip_7=(client_ip.substr(0,7)); if (formdata1 == "DMRB") { document.writeln(x) ; if (client_ip_7 == '134.161') { fullURL = "http://infoweb.newsbank.com/?db=" + formdata1 ; location.href = fullURL ; } else { fullURL = "http://0-infoweb.newsbank.com.unistar.uni.edu/?db=" + formdata1 ; location.href = fullURL ; } } else if (formdata1 == "eric") { document.writeln(x) ; if (client_ip_7 == '134.161') { fullURL = "http://search.ebscohost.com/login.aspx?authtype=ip,uid&profile=ehost&defaultdb=" + formdata1 ; location.href = fullURL ; } else { fullURL = "http://0-search.ebscohost.com.unistar.uni.edu/login.aspx?authtype=ip,uid&profile=ehost&defaultdb=" + formdata1 ; location.href = fullURL ; } } else if (formdata1 == "universe") { document.writeln(x) ; if (client_ip_7 == '134.161') { fullURL = "http://www.lexisnexis.com/universe/" ; location.href = fullURL ; } else { fullURL = "http://0-www.lexisnexis.com.unistar.uni.edu/universe/" ; location.href = fullURL ; } } else if (formdata1 == "netlibrary") { document.writeln(x) ; if (client_ip_7 == '134.161') { fullURL = "http://www." + formdata1 + ".com/" ; location.href = fullURL ; } else { fullURL = "http://0-www." + formdata1 + ".com.unistar.uni.edu/" ; location.href = fullURL ; } } }