﻿// JavaScript Document

//Function to work around the problem with exProxy links in Contribute
function ezProxy(url) {
	
	var url = 'http://ezproxy.maconstate.edu/login?url=http://'+url
	window.location = url;
	
}

//Function to get to correct text-only page
function textOnly() {
	
	var url = 'http://text.usg.edu:8080/tt/http://www.maconstate.edu' + window.location.pathname;
	window.location = url;
	
}

// JavaScript Document
function getSize() {
	
	var name = navigator.appVersion;
	var name2 = navigator.userAgent;
	name2 = Number(name2.search(/Firefox/));
	name = Number(name.search(/Safari/));
	var size;
	
	if(name == -1) {
		
		size = 25;
		
	}else if(name2 > -1){
		
		size = 30;
			
	}else{
	
		size = 25;
		
	}
	
	return(size);
	
}

// JavaScript Document
function quickhide(controlID) {
	
	var Form = document.getElementById(controlID);
	Form.style.visibility = 'hidden';
	
}