function CheckTimeSpan(){
	var msg;
    msg = "";
	var fs = document.getElementById("firstsession");
	var ss = document.getElementById("secondsession");
	var bTime = fs.options[fs.selectedIndex].value;
	var cTime = ss.options[ss.selectedIndex].value;
	if (cTime - bTime <=7 ) {
		alert("Please make reservations at least 4 hours apart.//nThank you.");
		return false;
	} else {
	//alert("first session " +fs.options[fs.selectedIndex].text);
	 //alert("second session " +ss.options[ss.selectedIndex].text);
		document.SetReservation.First.value = fs.options[fs.selectedIndex].text;
		document.SetReservation.Second.value = ss.options[ss.selectedIndex].text;
		for (var x = 1; x <= 10000; x++)
		   {
		   msg = msg + x + "\n";
		   }
		return true;
	}
	//reg = OptVals.Region.options[OptVals.Region.selectedIndex].value
}
//var windowFeatures = 'resizable=1,scrollbars=1,menubar=1,location=1,toolbar=1,statusbar=1';
//function showImage (imgURL) { 
 // if (window.opera || !window.Image) { // Opera doesn't fire 
//	Image.onload handler open(imgURL, '_blank', windowFeatures);
 // }
  //else { 
   // var img = new Image();
    //img.onload = openImageWindow;
   // img.src = imgURL;
 // }
//}
function openImageWindow (evt) {
  if (window.innerWidth) {
    var w = this.width;
    var h = this.height;
    var win = open('about:blank', '_blank', 
         'innerWidth=' + w + ',innerHeight=' + h + ',' + 
windowFeatures);
    var html = '';
    html += '<HTML><HEAD>';
    html += '<STYLE>';
    html += 
'#imgContainer { position: absolute; left: 0px; top: 0px; }';
    html += '<\/STYLE>';
    html += '<\/HEAD>';
    html += '<BODY>';
    html += '<SPAN ID="imgContainer">';
    html += '<IMG SRC="' + this.src + '">';
    html += '<\/SPAN>';
    html += '<\/BODY><\/HTML>';
    win.document.open();
    win.document.write(html);
    win.document.close();
  }
  else if (document.all) {
    var w = this.width;
    var h = this.height;
    var win = open('about:blank', '_blank', 
         'width=' + w + 'height=' + h + ',' + windowFeatures);
    var html = '';
    html += '<HTML><HEAD>';
    html += '<STYLE>';
    html += 
'#imgContainer { position: absolute; left: 0px; top: 0px; }';
    html += '<\/STYLE>';
    html += '<\/HEAD>';
    html += '<BODY>';
    html += '<SPAN ID="imgContainer">';
    html += '<IMG SRC="' + this.src + '">';
    html += '<\/SPAN>';
	html += '<\SPAN>';
    html += '<\/BODY><\/HTML>';
    win.document.open();
    win.document.write(html);
    win.document.close();
    win.resizeBy (w - win.document.body.clientWidth,
                  h - win.document.body.clientHeight);
    win.document.body.scroll = 'no';
  }
}
function DisableLists(m) {
       // two sets of lists Station 1 os01, os11 & Station 2 os02, os12
       // When one stations list is altered, disable the other stations lists....
       var Nav;
       Nav = 0;
       if (navigator.product == 'Gecko') {Nav = 1;}else{Nav=0}
           if(m == 1){
           if (Nav == 1){
            var x=document.getElementById("os02");
            x.disabled=true;
            } 
            else {
            var y=document.getElementById("os12");
			y.disabled=true;
            }
			
			// Setting the Session Vars
            if (Nav == 1){
			var xx=document.getElementById("os01").value;
			document.SetReservation.FirstSession.value = xx;
            } else {
			var yy=document.getElementById("os11").value;
			document.SetReservation.FirstSession.value = yy;
            }
            //Set the StationID for the inserting
			document.SetReservation.StationId.value = "0";
            }
    // Station 2 Request Value
            if(m == 2){
            if(Nav == 1){
            var x=document.getElementById("os01");
            x.disabled=true;
            }else{
            var y=document.getElementById("os11");
            y.disabled=true;
            }
			// Setting the Session Vars
			if (Nav == 1){
            var xx=document.getElementById("os02").value;
			document.SetReservation.FirstSession.value = xx;
            }else{
			var yy=document.getElementById("os12").value;
			document.SetReservation.FirstSession.value = yy;
            }
			//Set the StationID for the inserting
			document.SetReservation.StationId.value = "1";
            }
           // alert("First session = " + xx);
           // alert("Second session = " + yy);
        }
function SetSession(m){
    // Setting the reservation times
    var xx=document.getElementById("os01").value;
	document.SetReservation.FirstSession.value = xx;
	var yy=document.getElementById("os11").value;
	document.SetReservation.FirstSession.value = yy;
}
function sizeTbl(h) {
  var tbl = document.getElementById('tbl');
  tbl.style.display = h;
}
function sizeTbl2(h) {
  var tbl2 = document.getElementById('tbl2');
  tbl2.style.display = h;
}

