function check(text) {
	if (document.SForm.q.value == null || document.SForm.q.value == ""){
		alert(text)
		document.SForm.q.focus();
		return false;
	} else {
		return true;
	}
}

function check2(text) {
	if ((document.SForm.q.value == null || document.SForm.q.value == "") || (document.SForm.src.value == null || document.SForm.src.value == "") || (document.SForm.dst.value == null || document.SForm.dst.value == ""))
	{
		alert(text)
		document.SForm.q.focus();
		return false;
	}
	return;
}

