// JavaScript Document
function confirmSubmit() {
  var agree=confirm("The Kennesaw Mountain Jr Basketball website is hosted on a different server.  By clicking OK you will be redirected to the website.");
	if (agree) {
		window.location = "http://kennesawmountainjrbasketball.shutterfly.com";
		 return true ;
		} else {
		 return false ;
	}
}

function openWin(url, pageTitle) {
	var myWindow; //initialize variable
	
    var width = 570;
    var height = 640;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status=no,resizable=yes,scrollbars=yes,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
	myWindow = window.open(url, pageTitle, windowFeatures);
}


function ShowHide(divid,button){
    if (document.getElementById(divid).style.display == 'none') {
      document.getElementById(divid).style.display = 'block';
	  document.getElementById(button).value = "Collapse";
    } else {
      document.getElementById(divid).style.display = 'none';
	  document.getElementById(button).value = "Expand";
    }
}

