function OpSmWndw(URL,resizable,scrollbars,wHeight,wWidth)
{
var smallWindow=window.open(URL,"_blank","height="+((wHeight)?wHeight:400)+",width="+((wWidth)?wWidth:500)+",status=no,toolbar=no,menubar=no,location=no,resizable="+((resizable)?resizable:"no")+",scrollbars="+((scrollbars)?scrollbars:"yes"));
if (smallWindow != null && smallWindow.opener == null) smallWindow.opener=window;
smallWindow.focus();
//return smallWindow
}

function add_home(myLink, myClick) {
if (myClick == 1 & confirm('Хотите сделать WWW.KM.RU вашей основной страницей?')) {
open("/inc/"+myLink+"?BanCode=10", "main");
}
}
function checkName(nameEl) {
for (i=0; i < document.forms[0].length; i++) {
if (document.forms[0].elements[i].name == nameEl) {
numEl = i;
}
}
var cheatInteger, cheatString
with (document.forms[0].elements[numEl]){
cheatInteger=selectedIndex;
cheatString=options[cheatInteger].value
}
open(cheatString, "_top");
}
function inspection()
{
return true;
}

function inspectionbot()
{
return true;
}

function Open_cal (cod)
{
var msgWindow = window.open ("/tools/calendar.asp?cod="+cod+"&data="+data, "answer", "height=180,width=200,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=auto");
if (msgWindow != null && msgWindow.opener == null) msgWindow.opener=window;

	if (navigator.appVersion.charAt(0) == 4) {
		msgWindow.focus();
	}
}

