
<!--

var img1 = new Image();
img1.src = 'icons/spinner.gif';
var img2 = new Image();
img2.src = 'icons/asc.gif';
var img3 = new Image();
img3.src = 'icons/desc.gif';
var img4 = new Image();
img4.src = 'icons/first.gif';
var img5 = new Image();
img5.src = 'icons/prev.gif';
var img6 = new Image();
img6.src = 'icons/next.gif';
var img7 = new Image();
img7.src = 'icons/last.gif';
var img8 = new Image();
img8.src = 'icons/slider_bg.gif';
var img9 = new Image();
img9.src = 'icons/slider_grip.gif';




function openCenterWindow(file, name, width, height, options) {
	leftVal = (screen.width - width) / 2;
	topVal = (screen.height - height) / 2;
	
	if(typeof(popupWin) != "Object") {
		popupWin = window.open(file, name, 'width='+width+',height='+height+',left='+leftVal+',top='+topVal+','+options);
	}
	else {
		if(!popupWin.closed) {
			popupWin.location.href = file;
		}
		else {
			popupWin = window.open(file, name, 'width='+width+',height='+height+',left='+leftVal+',top='+topVal+','+options);
		}
	}
	popupWin.focus();

}

function LoadMovPage() {
	window.cbkMovie.Callback(0);
}

function LoadGenPage() {
	window.cbkGenre.Callback(0);
}
function ChangeMovDate(ddl) {
	window.cbkMovie.Callback(ddl.options[ddl.selectedIndex].value);

}
function ChangeGen(ddl) {
	window.cbkGenre.Callback(ddl.options[ddl.selectedIndex].value);

}
function ChangeVen(ddl) {
	window.cbkVenue.Callback(ddl.options[ddl.selectedIndex].value);
}


function ListRefresh() {
	if(opener != null) {
		if(!opener.closed) {
			opener.cbkMovie.Callback();
			window.setTimeout(
				function() {
					self.close();
				}, 1000);
		}
	}
}

function ListNewsRefresh() {
	if(opener != null) {
		if(!opener.closed) {
			opener.cbkNews.Callback();
			window.setTimeout(
				function() {
					self.close();
				}, 2000);
		}
	}
}


function CallbackRePost() {
	//alert("aaaaaaaa");
	var theform;
	if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
		theform = document.Form1;
	}
	else {
		theform = document.forms["Form1"];
	}
	//theform.submit();
}

function QueryDate(dt) {
	window.cbkMovie.Callback(dt);
}


function GetQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
}




-->
