﻿/*
//************************************************************************
//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                                          **
//                                                                      **
//************************************************************************
*/
function checkKeywords() {
    var o= document.getElementById("inputKeyWords");
	if(o.value== ""){
		alert("请输入关键字！");
		o.value= "";
		o.focus();
		return false;
	}
	return true;
}

function processSearch() {
	var o= document.getElementById("inputKeyWords");
	window.navigate(encodeURI("http://www.gztools.com/Product/Search.aspx?c="+ o.value));
}

function processKeywords(o, isBlur){
	if(isBlur) {
		o.style.color= 'Gray';
	} else {
		o.style.color= '#000000';
	}
}