help.js 781 Bytes
var help = {
		checking : function (){
			var problem =document.getElementById('problem').value;
			 if(problem == '输入您的问题关键字'){
				 document.getElementById('problem').value = '';
				return false;
			 }
			 return true;
		},
		liftcheck : function(){
			var problem =document.getElementById('problem1').value;
			 if(problem == '帮助信息检索'){
				 document.getElementById('problem1').value ='';
				return false;
			 }
			 return true;
		},
		//弹出层
		popup : function(ask,reply){
			$('#dialog').dialog('open');
			$('#ask').text(ask);
			$('#reply').text(reply);
			return false;
		}
};
$(document).ready(function(){
	// Dialog	
	$('#dialog').dialog({
		autoOpen: false,
		width:450,
        height:260,
		modal: true,
		resizable: false
	});
});