﻿// JScript File
//alert(document.all.todaytable.rows(0).cells(0).value);
//function for Scroll Content

function f2()
{
   filename="/events/scrollingtext.txt"
   
   oxmlhttp = null;
    try
      { oxmlhttp = new XMLHttpRequest();
        oxmlhttp.overrideMimeType("text/xml");
      }
    catch(e)
         { try
          { oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
          }
        catch(e)
          { return null;
          }
        }
    if(!oxmlhttp) return null;
    try
      { oxmlhttp.open("GET",filename,false);
        oxmlhttp.send(null);
      }
    catch(e)
      { return null;
      }
    
    document.write(oxmlhttp.responseText);
  
}



function f1()
{

var file;
file = "/events/events.xml";
try //Internet Explorer
{
 xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
 xmlDoc.async=false;
 xmlDoc.load(file);
}
catch(e)                                                    
{
	try //Firefox, Mozilla, Opera, etc.
	{
		xmlDoc=document.implementation.createDocument("","",null);
 	    xmlDoc.async=false;
		xmlDoc.load(file);
	} 
	catch(e){
	try{
	    var xmlhttp = new window.XMLHttpRequest();
        xmlhttp.open("GET",file,false);
        xmlhttp.send(null);
        xmlDoc = xmlhttp.responseXML.documentElement;
		}			
	catch(e) {
		alert(e.message);
   	         }
		}	
}

  try //Google Chrome
  {
var nodeIdList = xmlDoc.getElementsByTagName("bookingId");
var nodeList = xmlDoc.getElementsByTagName("eventTime")
var eventName = xmlDoc.getElementsByTagName("eventName")
var customerName = xmlDoc.getElementsByTagName("customerName")

for (var i=0; i<nodeList.length;i++)
{
var tempUrl;
tempUrl = "/dotHallbooking/showEventDetails.aspx?bookingId=" + nodeIdList[i].childNodes[0].nodeValue ;

document.write('<a href="/dotHallbooking/showEventDetails.aspx?bookingId=' + nodeIdList[i].childNodes[0].nodeValue  + '" target="_parent">' + nodeList[i].childNodes[0].nodeValue +'&nbsp;'+customerName[i].childNodes[0].nodeValue + '</a>')



//document.write('hii')
//document.write(nodeList[i].childNodes[0].nodeValue)
	
//   document.write('<img src="/i/arrow.jpg" hspace="8px"><a href="#" onclick="window.open("/dotHallBooking/showEventDetails.aspx?bookingId=" + nodeIdList[i].childNodes[0].nodeValue + '  ,''pop'',''200'',''100''); return false;">' + nodeList[i].childNodes[0].nodeValue  + '</a>')
//document.write('<a href="#" onclick="window.open('/dotHallBooking/showEventDetails.aspx?bookingId=' + nodeIdList[i].childNodes[0].nodeValue + ')">' + nodeList[i].childNodes[0].nodeValue  + '</a>')
//document.write("<a href='#' onclick='window.open(''/dotHallbooking/showEventDetails.aspx?bookingId=' + nodeIdList[i].childNodes[0].nodeValue + ''')>" + nodeList[i].childNodes[0].nodeValue  + "</a>");
//document.write("<img src=""/i/arrow.jpg"" hspace=""8px""><a href=""#"" onclick=""window.open(""/dotHallBooking/showEventDetails.aspx?bookingId=" + nodeIdList[i].childNodes[0].nodeValue + """  ,""pop"",""200"",""100""); return false;"">" + nodeList[i].childNodes[0].nodeValue  + "</a>")

//document.write("<a href=""#"" onclick=window.open('  ')>" + nodeList[i].childNodes[0].nodeValue  + "</a>");
   
  document.write("<p></p>");		
  }
  }
  catch(e)
  {
   error=e.message;
  // alert(error);
  }
  }
  
  
  
																			



