function gElm(id) {
	if(document.getElementById){
		return document.getElementById(id);
	}
	else if(document.all){
		return document.all[id];
	}
	else return false;
};

function abrePopImg(u, n, w, h){
	var l = 18;
	var t = 18;
var p = window.open(u, n, 'left=' + l + ',top=' + t + ',width=' + w + ',height=' + h + ',scrollbars=no');
return false;
};

function shDiv(id){if(gElm(id).style.display=='block'||!gElm(id).style.display)gElm(id).style.display = 'none';else gElm(id).style.display = 'block';};
function hDiv(id){gElm(id).style.display = 'none';}

function pImg(src){
	var obj = src.substring(src.lastIndexOf('/')+1,src.lastIndexOf('.'));
	eval('i'+obj+'= new Image()');
	eval('i'+obj+'.src="'+src+'"');
};

function openPop(u, n, w, h, c, s, o) {
	var l = 18;
	var t = 18;
	if (c) {l = (screen.availWidth - w)/2;t = (screen.availHeight -h)/2;}var p = window.open(u, n, 'left=' + l + ',top=' + t + ',width=' + w + ',height=' + h + ',scrollbars=' + ((s) ? 'yes' : 'no') + ((o) ? ',' + o : ''));
	return false;
	}