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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  return false;
}

         function checkInitial(name) {
		//define groups
		var groups = new Array('abc','def','ghi','jkl','mno','pqr','stuvwxyz');
		var paths = new Array('a-c','d-f','g-i','j-l','m-o','p-r','s-z');
	    var path = document.getElementById(name);
		//Get the first initial
		var initial = name.charAt(0).toLowerCase() ;
		// Find location of character
		var answer = -1;
		for (loop =0; loop < 7; loop++)
		{
		  if (groups[loop].indexOf(initial) != -1)
		  {
		  answer = loop;
		  }
		}
		path.innerHTML = 'More'; 

		}
function confirmSubmit()
{
var agree=confirm("Are you sure you want to delete this record?");
if (agree)
	return true ;
else
	return false ;
}
<!--Used to submit a form which has text links for the submit button-->
function submitForm ( selectedtype )
{
  document.suggesterSearchForm.SearchFor.value = selectedtype ;
  document.suggesterSearchForm.submit() ;
}

function addTicket(ticketRef,sessionID)
{
    
    document.getElementById('ticketType').style.display = 'block';
    document.getElementById('seatID').value = ticketRef;
}
function removeTicket(ticketRef,sessionID)
{
    document.getElementById('seatID').value = ticketRef;
    submitTicket('');
}
function submitTicket(seatType)
{
    document.getElementById('loading').style.display = 'block';
    document.getElementById('ticketType').style.display = 'none';
    var theForm = document.getElementById('addTicket');
    document.getElementById('seatType').value = seatType;
    theForm.submit();
}
