﻿/*
//************************************************************************
//Copyright MMMER.COM,All Right Reserved!                               **
//版权所有，贸贸在线！                                                  **
//************************************************************************
//                                                                      **
//Redistribution and use in source and binary forms, with or without    **
//modification, are permitted provided that the following conditions    **
//are met:                                                              **
//                                                                      **
//1. Redistributions of source code must retain the above copyright     **
//notice, this list of conditions and the following disclaimer.         **
//                                                                      **
//2. Redistributions in binary form must reproduce the above copyright  **
//notice, this list of conditions and the following disclaimer in the   **
//documentation and/or other materials provided with the distribution.  **
//                                                                      **
//3. Neither the name of the mmmer.com nor the names of its contributors**
//may be used to endorse or promote products derived from this software **
//without specific prior written permission.                            **
//************************************************************************
//                                                                      **
//Wwwhome:http://www.mmmer.com                                          **
//                                                                      **
//************************************************************************
*/
var defaultKeyword= "请输入您的邮件地址...";
function checkKeywords() {
    var o= document.getElementById("inputKeyWords");
	if(defaultKeyword== o.value|| o.value== ""){
		alert("请输入您的邮件地址");
		o.value= "";
		o.focus();
		return false;
	}
	return true;
}

function processSearch() {
	var o= document.getElementById("inputKeyWords");
	var result= window.location(encodeURI("liang.asp?bh="+ o.value));
	//if(result == null)
	   // alert("您的浏览器阻止弹出窗口，请点击确定按钮或者关闭阻止弹出窗口功能！");
}

function processKeywords(o, isBlur){
	if(isBlur) {
		if(o.value== "")
			o.value= defaultKeyword;
		o.style.color= '#6196CC';
	} else {
		if(o.value== defaultKeyword)
			o.value= "";
		o.style.color= '#6196CC';
	}
}