wol=window.onload;
window.onload=cifset;

function cifset() {
	if (document.forms[0] && document.forms[0].w && (document.getElementById || document.all)) {
		eles=document.getElementsByTagName('form');
		eles[0].onsubmit=checkIfFilled;
		}
	if (wol) wol();
}

function checkIfFilled() {
	i=document.forms[0].w.value;
	i1=i; i=''; k=0;
	while (i1!='') {
		c=i1.substring(0,1);
		if (c==' ') {
			if (i!='') i+=' ';
			}
		else if ('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-@&.'.indexOf(c)>-1) {
			i+=c; ++k;
			}
		i1=i1.substring(1,i1.length);
		}
	document.forms[0].w.value=i;
	if (k==0) {
		window.alert('Please enter keyword!');
		return(false);
		}
	return(true);
}

