//**********************************************
function getReasons(server){
	var wA = new String("/_6_reasons/index" + server + ".htm");
	window.open(wA,"mFlash","width=800, height=400, scrollbars=no, status=no, noresize")
};
//**********************************************
function showSpam(){
	document.forms[0].spamTBEmail.value="";
	if(document.getElementById){
		var oObj = document.getElementById("spamDetails");
		var oInp = document.getElementById("spamTBEmail");
		var lPos = getObjectPos(oInp, "Left");
		var tPos = getObjectPos(oInp, "Top");
		oObj.style.left = lPos;
		oObj.style.top = tPos - oObj.offsetHeight;
		oObj.style.display = "block";
	}
	return
}
//**********************************************
function hideSpam(){
	if(document.getElementById){
		var oObj = document.getElementById("spamDetails");
		oObj.style.display = "none";
	}
}
//**********************************************
function showDetails(){
	if(document.getElementById){
		var oObj = document.getElementById("searchDetails");
		var oInp = document.getElementById("txtSearch");
		var lPos = getObjectPos(oInp, "Left");
		var tPos = getObjectPos(oInp, "Top");
		oObj.style.left = lPos;
		oObj.style.top = tPos + oInp.offsetHeight;
		oObj.style.display = "block";
	}
  	if(browser.isIE){
		showSelect("hidden");
	}
	return
}
//**********************************************
function checkServerSections(sType, sState){
	var myElems = document.forms[0].elements;
	var myState = (sState) ? myElems[sState].checked : myElems[sType].checked
	
	for(var i=0; i<myElems.length;i++){
		var oName = myElems[i].name;
		if(oName.indexOf(sType)==0 && oName!=sType && myElems[i].type=="checkbox"){
			myElems[i].checked = myState
		}
	}
}
//**********************************************
function clearInputAll(bYes){
	if (bYes) {document.forms[0].spamsectio.checked= false;}
}
//**********************************************
function hideDetails(){
	if(document.getElementById){
		var oObj = document.getElementById("searchDetails");
		oObj.style.visibility = "hidden";
	}
	if(browser.isIE){
		showSelect("visible");
	}
}
//**********************************************
function getObjectPos(oObj, posIdent){
	if(oObj.tagName.toUpperCase() == "BODY"){
		return 0
	}else{
		return eval("oObj.offset" + posIdent) + getObjectPos(oObj.offsetParent, posIdent)
	}
}
//**********************************************
function showThumbs(iFile, wFile, hFile){
	var wXDet = window.open("/default.aspx?showPrint=1&file=" + iFile,"showThumbs","scrollbars=no, width=" + wFile + ", height=" + (parseInt(hFile)+25) + ", status=no, noresize");
}

//**********************************************
function rePositionElements(){
	document.location = document.location
}

window.onresize = rePositionElements;
//**********************************************
function navigateURL(loc){
	var wXLoc = window.open(loc,"navigateURL","scrollbars=no, width=502, height=400, status=no, noresize, scrollbars=yes");
}
//**********************************************
function printText(){
	var wXLoc = window.open("/printText.aspx","printText","scrollbars=no, width=502, height=400, status=yes, noresize, scrollbars=yes");
}
