﻿// JavaScript Document
////////////////////////////////  检查数据  ///////////////////////////////////////////////////
function checkdata(theForm){
	if (theForm.username.value == ""){
		alert("操作出错:\n\n请输入您的姓名!");
		theForm.username.focus();
		return false; 
		}
	if (theForm.cotel.value == ""){
		alert("操作出错:\n\n请填写电话号码!");
		theForm.cotel.focus();
		return false; 
		}
	if (theForm.info.value == ""){
		alert("操作出错:\n\n请填写留言内容!");
		theForm.info.focus();
		return false; 
		}
	}
////////////////////////////////  图片宽度  ////////////////////////////////////////////////////
function showimg(ImgD,FitWidth,FitHeight){
	if (ImgD.height>FitHeight){ImgD.height=FitHeight}
	if (ImgD.width>FitWidth)(ImgD.width=FitWidth)
	} 

////////////////////////  限制输入框字符  ////////////////////////////////////////////////
function getstr(thisArea,maxlen){
	if (thisArea.value.length > maxlen){
		alert(maxlen + " 个字符限制!");
		thisArea.value = thisArea.value.substring(0,maxlen);
		thisArea.focus();
		}
	messageCount.innerText = thisArea.value.length;
	}

document.writeln("<script src=\"\/css\/swf.js\" type=\"text\/javascript\"><\/script>");

function pic(){
	document.writeln("<script type='text/javascript'>AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','980','height','185','src','/img/swf','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','/img/swf','flashVars','pics=/img/01.jpg|/img/02.jpg|/img/03.jpg&links=&texts=||&borderwidth=980&borderheight=185&textheight=0','menu','false');</script>");
	}

document.writeln("<script type=\"text\/javascript\" src=\"http:\/\/js.tongji.linezing.com\/1177000\/tongji.js\"><\/script><noscript><a href=\"http:\/\/www.linezing.com\"><img src=\"http:\/\/img.tongji.linezing.com\/1177000\/tongji.gif\"\/><\/a><\/noscript>");
