<!--
var popup = null;
var w = screen.width;
var h = screen.height;

function MM_swapImgRestore() {
	var i, x, a = document.MM_sr;
	for(i = 0; a && i < a.length&&(x=a[i]) && x.oSrc; i++) {
		x.src = x.oSrc;
	}
}

function MM_findObj(n, d) {
	var p,i,x;
	if (!d) {
		d = document;
	}
	if (((p = n.indexOf("?")) > 0) && (parent.frames.length)) {
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}
	if (!(x = d[n]) && (d.all)) {
		x = d.all[n];
	}
	for (i = 0; !x && i<d.forms.length; i++) {
		x=d.forms[i][n];
	}
  	for (i = 0; !x && d.layers && i < d.layers.length; i++) {
		x=MM_findObj(n,d.layers[i].document);
	}
	if (!x && document.getElementById) {
		x=document.getElementById(n);
		return x;
	}
}

function MM_swapImage() {
	var i, j = 0, x, a = MM_swapImage.arguments;
	document.MM_sr = new Array;
	for(i = 0; i < (a.length-2); i += 3) {
		if ((x = MM_findObj(a[i])) != null) {
			document.MM_sr[j++] = x;
			if(!x.oSrc) {
				x.oSrc = x.src;
				x.src = a[i+2];
			}
		}
	}
}

function popupwindow(strURL, intWidth, intHeight, strScroll) {
	document.popupData.strURL.value = strURL;
	document.popupData.intWidth.value = intWidth;
	document.popupData.intHeight.value = intHeight;
	document.popupData.strScroll.value = strScroll;
	popupClose();
	popup = createWindow(strURL, "popup", intWidth, intHeight, strScroll);
	if (popup.opener == null) popup.opener = window;
	popup.opener.name = "IsteGenc";
	popup.focus();
}

function popupWindow(strURL, intWidth, intHeight, strScroll) {
	document.popupData.strURL.value = strURL;
	document.popupData.intWidth.value = intWidth;
	document.popupData.intHeight.value = intHeight;
	document.popupData.strScroll.value = strScroll;
	popupClose();
	popup = createWindow(strURL, "popup", intWidth, intHeight, strScroll);
	if (popup.opener == null) popup.opener = window;
	popup.opener.name = "IsteGenc";
	popup.focus();
}

function popupClose() {
	if (popup) {
		if (!popup.closed) popup.close();
	}
}

function popupRelease() {
	if (document.popupData.blnRefresh.value == "1") popupWindow(document.popupData.strURL.value, document.popupData.intWidth.value, document.popupData.intHeight.value, document.popupData.strScroll.value);
	document.popupData.strURL.value = "";
	document.popupData.intWidth.value = "";
	document.popupData.intHeight.value = "";
	document.popupData.strScroll.value = "";	
	document.popupData.blnRefresh.value = "";
}

function createWindow(strURL, strName, intWidth, intHeight, strScroll) {
	if (window.screen) {
		w = screen.width;
		h = screen.height;
	}

	intLeft = (w - intWidth) / 2;
	intTop = (h - intHeight) / 3;

	args = "width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ", screenx=" + intLeft + ",top=" + intTop  + ", screeny=" + intTop + ",resizable=no,scrollbars=" + strScroll + ",status=no";
	remote = window.open(strURL, strName, args);
	if (remote != null) if (remote.opener == null) remote.opener = self;
	return remote;
}

function isPollValid(whichPoll) {
	var blnPollValid = false;
	for (i=0; i < whichPoll.intAnswer.length; i++) {
		if (whichPoll.intAnswer[i].checked) blnPollValid = true;
	}
	return blnPollValid;
}

function popupremotewindow(strURL, strName, strProp) {
	window.open(strURL, strName, strProp);
}

function popupremotewindowi(strURL, strProp) {
	NewWindow = window.open(strURL, "NewWindow", strProp);
	if (NewWindow.opener == null) NewWindow.opener = window;
	NewWindow.opener.name = "IsteGenc";
	NewWindow.focus();
}

function OpenContactList() {
	leftPX = (w - 210);
	topPX = (h - 400) / 3;

	ContactListMain = window.open("/message/contact_list.asp", "ContactListMain", "width=180,height=400,left=" + leftPX + ",screenx=" + leftPX + ",top=" + topPX + ",screeny=" + topPX + ",resizable=no,scrollbars=no,status=no");
	if (ContactListMain.opener == null) ContactListMain.opener = window;
	ContactListMain.opener.name = "IsteGenc";
	ContactListMain.focus();
}

function CloseContactList() {
	ContactList.close();
}

function OpenSendMessage(lngMemberID) {
	leftPX = (w - 290) / 2;
	topPX = (h - 200) /3 ;

	MessageSendWindow = window.open("/message/sendmessage.asp?lngMemberID=" + lngMemberID, "MessageSendWindow", "width=290,height=200,left=" + leftPX + ",screenx=" + leftPX + ",top=" + topPX + ",screeny=" + topPX + ",resizable=no,scrollbars=no,status=no");
	if (MessageSendWindow.opener == null) MessageSendWindow.opener = window;
	MessageSendWindow.opener.name = "IsteGenc";
	MessageSendWindow.focus();
}

function OpenALE(lngMemberID) {
	leftPX = (w - 290) / 2;
	topPX = (h - 200) /3 ;

	ALEWindow = window.open("/message/addmember.asp?lngMemberID=" + lngMemberID, "ALEWindow", "width=290,height=200,left=" + leftPX + ",screenx=" + leftPX + ",top=" + topPX + ",screeny=" + topPX + ",resizable=no,scrollbars=no,status=no")
	if (ALEWindow.opener == null) ProfileWindow.opener = window;
	ALEWindow.opener.name = "IsteGenc";
	ALEWindow.focus();
}

function OpenProfile(lngMemberID) {
	leftPX = (w - 309) / 2;
	topPX = (h - 370) / 3;

	ProfileWindow = window.open("/user.asp?lngMemberID=" + lngMemberID, "ProfileWindow", "width=309,height=370,left=" + leftPX + ",screenx=" + leftPX + ",top=" + topPX + ",screeny=" + topPX + ",resizable=no,scrollbars=yes,status=no")
	if (ProfileWindow.opener == null) ProfileWindow.opener = window;
	ProfileWindow.opener.name = "IsteGenc";
	ProfileWindow.focus();
}

function rtclickcheck(keyp){
	if ((navigator.appName == "Netscape" && keyp.which == 3) || (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2)){
		return false;
	} 
}
//-->