// preload navigation buttons

if (document.images)
{
pic1= new Image(100,25);
pic1.src="http://www.collegetickets.org/images/m_help_desk_over.jpg";

pic2= new Image(100,25);
pic2.src="http://www.collegetickets.org/images/m_home_over.jpg";

pic3= new Image(100,25);
pic3.src="http://www.collegetickets.org/images/m_my_offers_over.jpg";

pic4= new Image(100,25);
pic4.src="http://www.collegetickets.org/images/m_my_tickets_over.jpg";

pic5= new Image(100,25);
pic5.src="http://www.collegetickets.org/images/m_post_a_listing_over.jpg";

pic6= new Image(100,25);
pic6.src="http://www.collegetickets.org/images/m_profile_over.jpg";

pic7= new Image(100,25);
pic7.src="http://www.collegetickets.org/images/m_tickets_over.jpg";
}
//-->



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function geturl(loc) {
window.location.href = loc;
}

function show(id) {

	blet = document.getElementById(id);
	
		if(blet.style.display == 'block') {
			blet.style.display = 'none';
		} else {
			blet.style.display = 'block';
		}
}


function decision(message, url){
if(confirm(message)) location.href = url;
}

<!--
function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength)
obj.value=obj.value.substring(0,mlength)
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->

    function makeRequest(id) {
		url = '/include/ticket_get_events.php?school_id='+id;
        var http_request = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        http_request.onreadystatechange = function() { alertContents2(http_request); };
        http_request.open('GET', url, true);
        http_request.send(null);
		
		/* show msg of getting info */
		//alert(id);
		//document.getElementById('ticket_events').innerHTML = '<strong>Loading...</strong>';

    }

    function alertContents2(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
			
			   document.getElementById('ticket_event_teams').innerHTML = http_request.responseText;
           
		    } else {
              
			   alert('There was a problem with loading the project, try again...');
            }
        }

    }
	

   function listSchedule(id) {
		url = '/include/ticket_list_schedule.php?id='+id;
        var http_request = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari, ...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }
        http_request.onreadystatechange = function() { alertContents(http_request); };
        http_request.open('GET', url, true);
        http_request.send(null);
		
		/* show msg of getting info */
		//alert("LOL");
		//document.getElementById('ticket_schedule').innerHTML = '<strong>Loading...</strong>';
		

    }

    function alertContents(http_request) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
			
			   document.getElementById('ticket_schedule').innerHTML = http_request.responseText;
           
		    } else {
              
			   alert('There was a problem with loading the project, try again...');
            }
        }

    }
