
function FormOnSubmit(form, pview){
	if (form == null) {
	var form = document.forms(0);
	}
	if (pview == null) {
	var pview = "WebSearch";
	}

	if (form.query.value!="") {
		if (form.count==null) {var count = ""} else {var count =  "&Count="+form.count.value}

		var myurl ="www/site.nsf/" + pview + "/$$SearchTemplateDefault?SearchView" + "&Query=" + form.query.value  + "&SearchFuzzy=TRUE&Start=1" + count;
		window.location.href="/" + myurl;
	} else {
		alert("Необходимо ввести условие поиска!");
	}
}

function popUp(src,x,y) {
  remoteprint = window.open(src,"Анкета","width="+x+",height="+y+",scrollbars=1");
  if (remoteprint != null && navigator.appName == 'Netscape' && navigator.appVersion.charAt(0) > '2') {
    remoteprint.focus();
  }
} 
