function confirm_ex(val){ 
if (confirm("Delete This Item\n\n OK=Yes - Cancel=No")){ 
window.location=val;
}
} 
function openwindow(val,val1,val3)
{
	window.open(val,val1,val3);
}
function addtnum(val,maxval){
 ff = eval("document.book"+val+"");
 ct = parseInt(ff.tnum.value);
 if((ct+1)>maxval){
	alert('sorry you can only book ' +ct+ ' tickets') ;
 }else{
	ff.tnum.value = (ct+1); 
 }
}
function minusnum(val){
	 ff = eval("document.book"+val+"");
 ct = parseInt(ff.tnum.value);
  if((ct-1)<1){
	alert('sorry you can not book less than 1 ticket') ;
 }else{
	ff.tnum.value = (ct-1); 
 }
}

function checkForm(theform){
cht = 0;
cht2 = 0;
var msg = "Please fill out all\nthe fields before submitting.";

for (x = 0; x < theform.elements.length; x++){
   var el = theform.elements[x];
   if (el.id == 'need') {
         if (el.value == ''){
            //alert(msg);
            el.className='formError';
            cht = 1;
            }else{
			el.className='formOK'; 
			}
       }

} 
if (cht == 1){
alert(msg);
return false;
}else{
return true;	   
}               

}
  function getValue(y,x)
  {
    var sel = document.getElementById(y);
    for(i=0;i<sel.length;i++)
      if(sel[i].value==x) { sel.value = sel[i].value }
  }
  
        function wrapTag(txtarea, lft, rgt) {
        lft = unescape(lft);
        rgt = unescape(rgt);
        if (document.all) {
          wrapIE(lft, rgt);

        } else if (document.getElementById) {
          wrapMoz(txtarea, lft, rgt);
        }
      }

      function wrapIE(lft, rgt) {
        strSelection = document.selection.createRange().text;
        if (strSelection!="") {
          document.selection.createRange().text = lft + strSelection + rgt;
        }
      }

      function wrapMoz(txtarea, lft, rgt) {
        var selLength = txtarea.textLength;
        var selStart = txtarea.selectionStart;
        var selEnd = txtarea.selectionEnd;
        if (selEnd==1 || selEnd==2) selEnd=selLength;
        var s1 = (txtarea.value).substring(0,selStart);
        var s2 = (txtarea.value).substring(selStart, selEnd)
        var s3 = (txtarea.value).substring(selEnd, selLength);
        txtarea.value = s1 + lft + s2 + rgt + s3;
      }
	  function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}
window.attachEvent("onload", correctPNG);