function inputFocus(obj, word){
	if ( obj.value == word ){
		obj.value = '';
	}
}

function inputBlur(obj, word){
	if ( obj.value == '' ){
		obj.value = word;
	}
}

function searchSubmit(obj, word){	
	return document.getElementById(obj).value == word ? false : true;
}

function picwindow(theURL,winName,features,parameter,title) {
	order = window.open(theURL,winName,features);
	order.document.writeln('<html>');
	order.document.writeln('<head>');
	order.document.writeln('<meta http-equiv="Content-Language" content="ru">');
	order.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">');
	order.document.writeln('<title>' + title + '</title>');
	order.document.writeln('</head>');
	order.document.writeln('<body topmargin="0" leftmargin="0" marginheight=0 marginwidth=0>');
	order.document.writeln('<img src="' + parameter + '" alt="'+ title +'">');
	order.document.writeln('</body>');
	order.document.writeln('</html>');
	order.focus();		 
}

function offTimer() {
	if (document.timer) {
		window.clearTimeout(document.timer);
		document.timer = null;
	}
}

function show(obj) {
	document.getElementById(obj).style.display = 'block';
}

function hide() {
	if (document.vis_l3) {
			document.getElementById(document.vis_l3).style.display = 'none';
			document.vis_l3 = null;
		};
	document.getElementById(document.vis).style.display = 'none';
	
}
function on(obj) {
	offTimer();
	if (document.vis) {
		hide();
	}
	show(obj);
}

function off(obj) {
	document.vis = obj;
	document.timer = window.setTimeout('hide()', 300);
}
