top.window.moveTo(0,0);
if (document.all) {
	top.window.resizeTo(screen.availWidth,screen.availHeight);
} else if (document.layers||document.getElementById) {
	if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) {
		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;
	}
}

function ChangeSelection() {
	exhibition_id = document.form1.exhibition_list.value;
	document.form1.exhibition.value = document.form1.exhibition_list.value;
	language_code = document.form1.language_code.value;
	document.form1.action = "hall_complex.asp?exhibition=" + exhibition_id + '&language_code=' + language_code;
	document.form1.submit();
}

function ChangeArchiveSelection() {
	exhibition_id = document.form1.exhibition_archive_list.value;
	document.form1.exhibition.value = document.form1.exhibition_archive_list.value
	document.form1.readonly.value = 1;
	language_code = document.form1.language_code.value;
	document.form1.action = "hall_complex.asp?exhibition=" + exhibition_id + '&language_code=' + language_code + '&readonly=1';
	document.form1.submit();
}

function goback(){
	browser = navigator.appName
	if (browser.indexOf("etscape") > 0 ) explorer = false
	else explorer = true
				
	if (explorer) {
		history.back()
	} else {
		window.back()
	}
}

var newHallUrlWindow
function New_Window_HallUrl(url) {
	if (!newHallUrlWindow || newHallUrlWindow.closed) {
		newHallUrlWindow = window.open(url,'New_HallUrlWindow','left=100px,top:300px,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=520,height=170'); 
		if (!newHallUrlWindow.opener) {
			newHallUrlWindow.opener = window
		} 
	} else {
		newHallUrlWindow.location.href = url
		newHallUrlWindow.focus()
	}
}			

var searchWindow
function New_Window_SearchExpo(url) {
	//alert(document.forms[0].type);
	//return;
	if (!searchWindow || searchWindow.closed) {
		searchWindow = window.open(url,'searchWindow','left=100px,top:300px,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=480,height=440'); 					
		if (!searchWindow.opener) {
			searchWindow.opener = window
		} 
	} else {
		searchWindow.location.href = url
		searchWindow.focus()
	}
}	

var newWindowHelp
function New_Window_Help(url) {
	
	if (!newWindowHelp || newWindowHelp.closed) {
		newWindowHelp = window.open(url,'newWindowHelp','left=100px,top:300px,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=480,height=640'); 
		if (!newWindowHelp.opener) {
			newWindowHelp.opener = window;
		} 
	} else {
		newWindowHelp.location.href = url;
		newWindowHelp.focus();
	}
}	


function TypeChanged(type) {
	//alert(document.frm_search.view);
	document.frm_search.view.value = type;
}


