
//setSize
function doZoom(size)
{document.getElementById('zoom').style.fontSize=size+'px';

document.getElementById('zoom').style.lineheight=size+'pt';
}

function printPage(){
	window.print();
}

//弹出窗口
function Win(file,w,h,r,s){
    window.open(file,'','resizable='+r+',width='+w+",height="+h+',scrollbars='+s+',left='+(screen.availWidth-w)/2+',top='+(screen.availHeight-h)/2);
}

//sub

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function checkInput()
{
	if(form1.txt_name.value=='')
	{
		alert('姓名不可以为空！');
		return false;
	}
	if(form1.txt_email.value=='')
	{
		alert('EMAIL不可以为空！');
		return false;
	}
	if(form1.txt_phone.value=='')
	{
		alert('电话不可以为空！');
		return false;
	}
	flag=0;
	for(i=0;i<form1.rdo_type.length;i++)
	{
		if(form1.rdo_type[i].checked==true)
		{
			flag=1;
			break;
		}
	}
	if(flag==0)
	{
		alert('请您选择反馈类型！');
		return false;
	}
	if(form1.txt_title.value=='')
	{
		alert('标题不可以为空！');
		return false;
	}
	if(form1.content.value=='')
	{
		alert('内容不可以为空！');
		return false;
	}
	return true;
}

