var id;

image1 = new Image();
image1.src = 'menu_fon_over.gif';
//---------------------------------------------------------------------
function load_img(id, h, w)
{
	var l = (screen.width  - w)/2;
 	var t = (screen.height - h)/2;
	window.open('/img.php?img='+id, '', 'resizable=yes,scrollbars=yes,height='+h+',width='+w+',top='+t+',left='+l);
}
//---------------------------------------------------------------------
function load_photo(url, h, w)
{
	if (w < 720)
		w = 720;
	else
		w = w + 50;
	if (h < 700)
		h = 700;
	else
		h = h + 80;
	var l = (screen.width  - w)/2;
 	var t = (screen.height - h)/2;
	window.open(url, '', 'resizable=yes,scrollbars=yes,height='+h+',width='+w+',top='+t+',left='+l);
}
//---------------------------------------------------------------------
function load_imgs(id, type, img,  h, w)
{
	if (w < 720)
		w = 720;
	else
		w = w + 50;
	if (h < 700)
		h = 700;
	else
		h = h + 80;
	var l = (screen.width  - w)/2;
 	var t = (screen.height - h)/2;
	window.open('/imgs.php?type='+type+'&id='+id+'&img='+img, '', 'resizable=yes,scrollbars=yes,height='+h+',width='+w+',top='+t+',left='+l);
}
//--------------------------------------------------------
function doLoad(url)
{
  document.body.style.cursor = 'wait';
  var req = new JsHttpRequest();
  req.caching = false;
  req.open(null, url, true);
  req.send(  );
}
//--------------------------------------------------------
function doo(txt)
{
	if (id == 'secure')
	{
		if (txt == 'true')
		{
			document.getElementById(id).style.color='#000000';
			document.getElementById('secure_key').value='1';
		}
		else
		{
			document.getElementById(id).style.color='#FF4A0C';
			document.getElementById('secure_key').value='0';
		}
		enable_button();
	}
	document.body.style.cursor = 'default';
}
//--------------------------------------------------------
