var xmlhttp=false;

/*@cc_on @*/
/*@if(@_jscript_version>=5)
	try
	{
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(E)
		{
			xmlhttp=false;
		}
	}
@end @*/
if(!xmlhttp && typeof XMLHttpRequest!='undefined') xmlhttp = new XMLHttpRequest();

function load_second_params(par1,ident_collage,par2)
{
	try
	{
		xmlhttp.open('GET','/load_second_params.php?par1='+par1+'&ident_collage='+ident_collage+'&par2='+par2+'&rand='+Math.random(), true);
		xmlhttp.onreadystatechange=function()
		{
			if(xmlhttp.readyState==4) document.getElementById('second_parametr').innerHTML=xmlhttp.responseText;
		};
		xmlhttp.send(null);
	}
	catch(e)
	{}
}
