// JavaScript Document

	function tp(id){
		
		//使用时屏蔽此段代码
		//alert('投票还没开始');
		//return false;
		//使用时屏蔽此段代码
		
		if(id==''||id==null){
			alert('您投票的案例不存在!');
			return false ;
		}
		$('#bh').attr('value',id);
		$('#form_tp').attr("action","php/mobile.php?action=tp");
		$('#form_tp').submit();
		exit();
	}
	//判断提交留言内容
	function check(){
		
		
		
		if($('#content').val().length<1){
			alert('您还没有填写内容!');
			return false;
		}
		if($('#content').val().length>100){
			alert('最多留言字数100!');
			return false ;
		}
		$('#form1').submit();
	}
	
	
	//进入详细案例页面
	function detail_file(file_name){
		if(file_name!=''){
				window.location = file_name+'.php';
			}
	}
