function show(file,wz,hz) {
	helpWindow = window.open(file, '', 'toolbar=no,resizable=no,scrollbars=yes,location=no,width='+wz+',height='+hz+'');
}

function showmsg(file,wz,hz) {
	messanger = window.open(file, 'messanger', 'toolbar=no,resizable=no,scrollbars=yes,location=no,width='+wz+',height='+hz+'');
	 setTimeout('messanger.focus()',1);
}

function showchat(file,wz,hz) {
	chat = window.open(file, 'chat', 'toolbar=no,resizable=yes,scrollbars=yes,location=no,width='+wz+',height='+hz+'');
	 setTimeout('chat.focus()',1);
}

function show2(file,wz,hz) {
	helpWindow = window.open(file, '', 'toolbar=no,resizable=no,scrollbars=no,location=no,width='+wz+',height='+hz+'');
}

function show3(file,wz,hz) {
	helpWindow = window.open(file, '', 'toolbar=yes,status=yes,resizable=no,scrollbars=yes,location=no,width='+wz+',height='+hz+'');
}

function disableForm(theform) {
	if (document.all || document.getElementById) {
		for (i = 0; i < theform.length; i++) {
			var tempobj = theform.elements[i];
			if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset") tempobj.disabled = true;
		}
		return true;
	} else {
		return false;
	}
}

function openwide(obj_id) {
	obj=document.getElementById(obj_id);
	obj.style.display = obj.style.display == 'none' ? 'inline' : 'none';
}
