function popup_Info(sPage, iWidth, iHeight){
	if (!(iWidth > 0))
		iWidth = 460;
		
	if (!(iHeight > 0))
		iHeight = 600
		 
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	window.open("/default.aspx?mode=popup&page=" + sPage, "info", "width=" + iWidth + ",height=" + iHeight + ",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes, bgcolor=0");			
}

function popup_Page(sPage, iWidth, iHeight, bReload){
	if (!(iWidth > 0))
		iWidth = 460;
		
	if (!(iHeight > 0))
		iHeight = 600
		 
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	window.open(sPage, "info", "width=" + iWidth + ",height=" + iHeight + ",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes, bgcolor=0");
	
	if (bReload == "true") {
		setTimeout('window.location.reload()', 500);
	}
}

function goToPage(pcstrUrl){
	window.opener.location=pcstrUrl;
	window.close();
}

function fn_Change(obj, _array){
	document.getElementById("a").style.display = "none";
	if(obj.options[obj.selectedIndex].value == ""){document.getElementById("a").style.display = "";}
	
	for(i=0;i<_array.length;i++){	
		if(obj.options[obj.selectedIndex].value == _array[i]){
			document.getElementById(_array[i]).style.display = "";
			document.getElementById(_array[i]).options[0].selected = true;				
		}else{
			document.getElementById(_array[i]).style.display = "none";
			document.getElementById(_array[i]).options[0].selected = true; 
		}
	}		
}