function grmodifys(grid, helpid, types)
{
	window.location.replace("gr_modifyh.asp?gr_id=" + grid + "&id=" + helpid + "&type=" + types);
}

function qymodifys(grid, helpid, types)
{
	window.location.replace("qy_modifyh.asp?qy_id=" + grid + "&id=" + helpid + "&type=" + types);
}

function opendel(delid, chanel, types)
{
	window.location.replace("operdel.asp?id=" + delid + "&channel=" + chanel + "&type=" + types);
}

function wordnum(names, opword)
{
	document.getElementById(opword).innerHTML = 65 - document.getElementById(names).value.length;
}

function ggxgshows(contents)
{
	document.getElementById(contents).style.display = "block";
}

function newwindow()
{
	var nw = new Object();
	var ginfortime;
	var divshow;
	var signs;
	
	nw.createopwindow = function(sign1)
	{
		if( window.navigator.userAgent.indexOf("Chrome") == -1 )
		{
			divshow = "<div style='clear: both; height: 20px; font-weight: bold; margin-bottom: 10px\9; background-color: #F4F3F3; border-top: 1px solid Black; border-bottom: 1px solid Black;'><div style='float: left; padding-left: 6px;'>我来帮助你</div><div style='float: right; padding-right: 6px;'><span style='cursor: pointer;' onclick='" + sign1 + ".ggxgclosesaid()'>X</span></div></div>";
		}
		else
		{
			divshow = "<div style='clear: both; height: 20px; font-weight: bold; margin-top: 41px; margin-bottom: 10px\9; background-color: #F4F3F3; border-top: 1px solid Black; border-bottom: 1px solid Black;'><div style='float: left; padding-left: 6px;'>我来帮助你</div><div style='float: right; padding-right: 6px;'><span style='cursor: pointer;' onclick='" + sign1 + ".ggxgclosesaid()'>X</span></div></div>";
		}
	}
	
	nw.greinfor = function(toid, totype, sourceid, sourcetype, operid, operType, sign1)
	{
		var ginfortime;
		signs = sign1;
		
		nw.createopwindow(signs);
		
		var divbg = document.getElementById("BigArea");
		var divre = document.getElementById("reanswer");
	
		divbg.style.position = "absolute";
		divre.style.position = "absolute";
		divre.innerHTML = divshow + "<iframe src='rehelp.asp?toid=" + toid + "&totype=" + totype + "&operType=" + operType + "&operid=" + operid + "&sourceid=" + sourceid + "&sourcetype=" + sourcetype + "' frameborder='0' scrolling='no' style='width:480px; height: 260px;'></iframe>";
		divbg.style.height = window.screen.height;
		divbg.style.top = document.documentElement.scrollTop + "px";
		divre.style.top = (window.screen.height - 300) / 2 + document.documentElement.scrollTop + "px";
		document.body.style.overflow = "hidden";
		divbg.style.display = "block";
		divre.style.display = "block";
		ginfortime = setInterval(nw.ggxgresaid1, 100);
	}

	nw.ggxgresaid1 = function()
	{
		var divbg = document.getElementById("BigArea");
		var divre = document.getElementById("reanswer");
		divbg.style.position = "absolute";
		divre.style.position = "absolute";
		divbg.style.top = document.documentElement.scrollTop + "px";
		divre.style.top = (window.screen.height - 300) / 2 + document.documentElement.scrollTop + "px";
	}

	nw.ggxgclosesaid = function()
	{
		document.getElementById("BigArea").style.display = "none";
		document.getElementById("reanswer").style.display = "none";
		document.body.style.overflow = "auto";
		clearInterval(ginfortime);
	}
	
	return nw;
}
