﻿function ShowFoot() //冯布洲2007.3.9
{
	var qqimg="http://www.softty.com/images/qq.gif";
	var ptimg="http://www.softty.com/images/point.gif";
	document.write('<tr><td align="center" valign="top" background="images/rep_2.jpg" style="border-top:2px solid #ffffff; background-position:top ; background-repeat:repeat-x">');
  document.write('<div style="padding-top:5px"><span class="style5"><b><a href=http://www.softty.com>广州鸿悦软件科技有限公司</a></b> &copy; 2010 <b><a href="http://www.softty.com"><font color=#ffff00>www.soft<font color=#00ff00>ty</font>.com</font></a></b> <br>');
	document.write('地址: 广州市天河区中山大道棠东商业大厦3A28室<BR>');
	document.write('24小时销售电话:13702741845 电话: 020-85539199 传真: 020-85800201<br> ');
	document.write('邮箱: <A href="mailto:DNA@softty.com">DNA@softty.com</A> <A href="mailto:softty@126.com">softty@126.com</A><br>');
	document.write('<A  href="http://www.miibeian.gov.cn/" target=_blank>粤ICP备05067844号</A></span></div></td></tr>');
/*	document.write("<div id=float style='left:789px;POSITION:absolute;TOP:9px;z-index:1;width:57px;' align=center><img src="+qqimg+" border=1 usemap=#Mapqq1 title='与鸿悦软件交谈' onload=flevInitPersistentLayer('float',0,'20','','','295','','')><br><img src="+ptimg+" height=5><br><img src="+qqimg+" border=1 usemap=#Mapqq2 title='与成诚交谈'><br><img src="+ptimg+" height=5><br><img src="+qqimg+" border=1 usemap=#Mapqq3 title='与鸿悦软件-宁交谈'><br><img src="+ptimg+" height=5><br><img src="+qqimg+" border=1 usemap=#Mapqq4 title='与gogo交谈'></div>");
	document.write('<map name="Mapqq1"><area shape="rect" coords="0,0,57,16" href="http://wpa.qq.com/msgrd?V=1&Uin=445821803&Site=www.softty.com&Menu=yes" target=_blank></map>');
	document.write('<map name="Mapqq2"><area shape="rect" coords="0,0,57,16" href="http://wpa.qq.com/msgrd?V=1&Uin=21320482&Site=www.softty.com&Menu=yes" target=_blank></map>');
	document.write('<map name="Mapqq3"><area shape="rect" coords="0,0,57,16" href="http://wpa.qq.com/msgrd?V=1&Uin=815578673&Site=www.softty.com&Menu=yes" target=_blank></map>');
	document.write('<map name="Mapqq4"><area shape="rect" coords="0,0,57,16" href="http://wpa.qq.com/msgrd?V=1&Uin=510575025&Site=www.softty.com&Menu=yes" target=_blank></map>');
*/
}

function sendMsg() //冯布洲2007.3.9
{
	var isOK=false;
	var strQQ,strMSN,strTel,strEmail,strAddr,strText,strLianxi;
	strLianxi="";
	strQQ=form1.qq.value;
	strMSN=form1.msn.value;
	strTel=form1.tel.value;
	strEmail=form1.email.value;
	strAddr=form1.addr.value;
	strText=form1.text.value;
	if(strQQ.length>=5)
	{
		isOK=true;
		strLianxi="QQ:"+strQQ;
	}
	if(strMSN.length>=9)
	{
		isOK=true;
		strLianxi+="MSN:"+strMSN;
	}
	if(strTel.length>=7)
	{
		isOK=true;
		strLianxi+="Tel:"+strTel;
	}
	if(strEmail.length>=8)
	{
		isOK=true;
		strLianxi+="Email:"+strEmail;
	}
	if(strAddr.length>=2)
	{
		isOK=true;
		strLianxi+="Addr:"+strAddr;
	}
	if(!isOK)
	{
		alert("请至少填写一种联系方式!");
		form1.qq.focus();
		return;
	}
	if(strText.length<1)
	{
		alert("留言内容不能为空!");
		form1.text.focus();
		return;
	}
	msg.lea_mess.message.value=strText.substr(0,200);
	msg.lea_mess.contact.value=strLianxi.substr(0,50);
	
	if(!confirm('您确定发送留言吗?')) 
		return;
	msg.lea_mess.submit();
	alert("您的留言已发送成功！\n\n谢谢您的支持！我们将尽快与您取得联系！");
	form1.reset();
	form1.qq.focus();
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function flevDivPositionValue(sDiv, sProperty) { // v2.1, Marja Ribbers-de Vroed, FlevOOware
	this.opera = (window.opera); // Opera 5+
	this.ns4 = (document.layers); // Netscape 4.x
	this.ns6 = (document.getElementById && !document.all && !this.opera); // Netscape 6+
	this.ie = (document.all);  // Internet Explorer 4+
    var sValue = ""; docObj = eval("MM_findObj('" + sDiv + "')"); if (docObj == null) {return 0;}
	if ((sProperty == "left") || (sProperty == "top")) {
		if (!this.ns4) {docObj = docObj.style;} 
		sValue = eval("docObj." + sProperty);
		if ((this.ie) && (sValue == "")) { // IE (on PC) bug with nested layers
			if (sProperty == "top") { sValue = eval(sDiv + ".offsetTop"); } 
			else { sValue = eval(sDiv + ".offsetLeft"); } 
		};
	}
	else {
		if (this.opera) {
			docObj = docObj.style;
			if (sProperty == "height") { sValue = docObj.pixelHeight; } 
			else if (sProperty == "width") { sValue = docObj.pixelWidth; } 
		}
		else if (this.ns4) {sValue = eval("docObj.clip." + sProperty);} 
		else if (this.ns6) {sValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sProperty); } 
	    else if (this.ie) { 
			if (sProperty == "width") { sValue = eval(sDiv + ".offsetWidth"); } 
			else if (sProperty == "height") { sValue = eval(sDiv + ".offsetHeight"); } 
		}
   	}
	sValue = (sValue == "") ? 0 : sValue; 
	if (isNaN(sValue)) { if (sValue.indexOf('px') > 0) { sValue = sValue.substring(0,sValue.indexOf('px')); } } 
	return parseInt(sValue); 
}

function flevPersistentLayer() { // v3.3, Marja Ribbers-de Vroed, FlevOOware
	var sD = arguments[0], oD = eval("MM_findObj('" + sD + "')"), iWW, iWH, iSX, iSY, iT = 10, sS = "";
	if (!document.layers) {oD = oD.style;}
	if (oD.tmpTimeout != null) {clearTimeout(oD.tmpTimeout);}
	var sXL = arguments[1], sXC = arguments[2], sXR = arguments[3], sYT = arguments[4], sYC = arguments[5], sYB = arguments[6];
	var iS = (arguments.length > 7) ? parseInt(arguments[7]) : 0, iPx = (arguments.length > 8) ? parseInt(arguments[8]) : 0;
	if (window.innerWidth) { // NS4, NS6 and Opera
		var oW = window; iWW = oW.innerWidth; iWH = oW.innerHeight; iSX = oW.pageXOffset; iSY = oW.pageYOffset; }
	else if (document.documentElement && document.documentElement.clientWidth) { // IE6 in standards compliant mode
		var oDE = document.documentElement; iWW = oDE.clientWidth; iWH = oDE.clientHeight; iSX = oDE.scrollLeft; iSY = oDE.scrollTop; }
	else if (document.body) { // IE4+
		var oDB = document.body; iWW = oDB.clientWidth; iWH = oDB.clientHeight; iSX = oDB.scrollLeft; iSY = oDB.scrollTop; }
	else {return;}
	var iCX = iNX = flevDivPositionValue(sD, 'left'), iCY = iNY = flevDivPositionValue(sD, 'top');
	if (sXL != "") {iNX = iSX + parseInt(sXL);} 
	else if (sXC != "") {iNX = Math.round(iSX + (iWW/2) - (flevDivPositionValue(sD, 'width')/2));}
	else if (sXR != "") {iNX = iSX + iWW - (flevDivPositionValue(sD, 'width') + parseInt(sXR));}
	if (sYT != "") {iNY = iSY + parseInt(sYT);}
	else if (sYC != "") {iNY = Math.round(iSY + (iWH/2) - (flevDivPositionValue(sD, 'height')/2));}
	else if (sYB != "") {iNY = iSY + (iWH - flevDivPositionValue(sD, 'height') - parseInt(sYB));}
	if ((iCX != iNX) || (iCY != iNY)) {
		if (iS > 0) {
			if (iPx > 0) { iT = iS;
				var iPxX = iPx, iPxY = iPx, iMX = Math.abs(iCX - iNX), iMY = Math.abs(iCY - iNY);
				// take care of diagonal movement
				if (iMX < iMY) {iPxY = (iMX != 0) ? ((iMY/iMX)*iPx) : iPx;}
				else {iPxX = (iMY != 0) ? ((iMX/iMY)*iPx) : iPx;}
				if (iPxX >= iMX) {iPxX = Math.min(Math.ceil(iPxX), iPx);}
				if (iPxY >= iMY) {iPxY = Math.min(Math.ceil(iPxY), iPx);}
				// temporary X/Y coordinates
				if ((iCX < iNX) && (iCX + iPxX < iNX)) {iNX = iCX + iPxX;}
				if ((iCX > iNX) && (iCX - iPxX > iNX)) {iNX = iCX - iPxX;}
				if ((iCY < iNY) && (iCY + iPxY < iNY)) {iNY = iCY + iPxY;}
				if ((iCY > iNY) && (iCY - iPxY > iNY)) {iNY = iCY - iPxY;} }
			else { 
				var iMX = ((iNX - iCX) / iS), iMY = ((iNY - iCY) / iS); 
				iMX = (iMX > 0) ? Math.ceil(iMX) : Math.floor(iMX); iNX = iCX + iMX; 
				iMY = (iMY > 0) ? Math.ceil(iMY) : Math.floor(iMY); iNY = iCY + iMY; } }
		if ((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {sS="px";}
		if (iMX != 0) {eval("oD.left = '" + iNX + sS + "'");}
		if (iMY != 0) {eval("oD.top = '" + iNY + sS + "'");} }
	var sF = "flevPersistentLayer('" + sD + "','" + sXL + "','" + sXC + "','" + sXR + "','" + sYT + "','" + sYC + "','" + sYB + "'," + iS + "," + iPx + ")";
	oD.tmpTimeout = setTimeout(sF,10);
}

function flevInitPersistentLayer() { // v3.3, Marja Ribbers-de Vroed, FlevOOware
	if (arguments.length < 8) {return;}
	var sD = arguments[0]; if (sD == "") {return;}
	var	oD = eval("MM_findObj('" + sD + "')"); if (!oD) {return;}
	var iCSS = parseInt(arguments[1]);
	var sXL = arguments[2], sXC = arguments[3], sXR = arguments[4], sYT = arguments[5], sYC = arguments[6], sYB = arguments[7];
	var iS = (arguments.length > 8) ? parseInt(arguments[8]) : 0, iPx = (arguments.length > 9) ? parseInt(arguments[9]) : 0;
	if (iCSS != 0) { if (!document.layers) {oD = oD.style;} sXL = parseInt(oD.left), sYT = parseInt(oD.top);}
	var sF = "flevPersistentLayer('" + sD + "','" + sXL + "','" + sXC + "','" + sXR + "','" + sYT + "','" + sYC + "','" + sYB + "'," + iS + "," + iPx + ")";
	eval(sF);
}