function popupAsp(href, target, requireLogin, width, height) {
	if (width === undefined) width = 425;
	if (height === undefined) height = 400;
	if (requireLogin || href.indexOf('audio') != -1) {
		href = "/login.asp?target=" + href;
	}
	var w = window.open(href, 'mywindow'+target,'status=0,titlebar=0,menubar=1,resizable=1,scrollbars=1,width='+width+',height='+height);
	if (w) w.focus();
}
function popup(href, target, requireLogin, width, height) {
	popupAsp("/popup.asp?target=" + href, target, requireLogin, width, height);
}
function popup2(href, target) {
	var w = window.open(href, 'mywindow'+target,'status=0,titlebar=0,menubar=1,resizable=1,scrollbars=1,width=800,height=850');
	if (w) w.focus();
}
function showFaq(n) {
	var i = 1, a;		
	while (a = document.getElementById("a" + i++)) a.style.display = 'none';
	a = document.getElementById("a" + n);		
	a.style.display = (a.style.display == 'block') ? 'none' : 'block';
}
function hideFaq(n) {
	document.getElementById("a" + n).style.display = 'none';
}
function showProceeedWindow() {	
	document.getElementById('proceedWindow').style.display = 'block';
}
function hideProceeedWindow() {
	alert('hideProceeedWindow');
	document.getElementById('proceedWindow').style.display = 'none';
}
function keepAlive() {
	setTimeout(execKeepAlive, 1000 * 60 * 28); // hit every 28 mins
}
function execKeepAlive() {
	var d = new Date();
	var img = new Image();
	img.src = "/keepAlive.asp?r=" & d.getTime();
	keepAlive()
}
function isIE() {
	var agt = navigator.userAgent.toLowerCase();
	return agt.indexOf("msie") != -1;
}
function fixIE() {
	if (isIE()) {
		window.onresize = fixIE;
		var e = document.getElementById("corner");
		var t = document.getElementById("mainTable");		
		if (e && t) {
			e.style.left = '' + (t.offsetLeft + 9) + 'px';
			e.style.top = '167px';
		}
	}
}