function pop_it(the_form)
{
   my_form = eval(the_form)
   window.open("ident.php", "popup_ident", "height=480,width=520,menubar='no',toolbar='no',location='no',status='no',scrollbars='no'");
   my_form.target = "popup_ident";
   my_form.submit();
}

function getXmlHttp()
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
		//alert("Your browser is FF");
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			//alert("Your browser is MS ie 6+");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
				//alert("Your browser is MS ie 5.5 or other");
			}
			catch (e)
			{
				//alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	return xmlHttp;
}
/*
function	ajaxUpload()
{
	var xmlHTTP = getXmlHttp();
	if (xmlHTTP == null)
		return false;
	xmlHTTP.onreadystatechange = function()
	{
		
	}
	xmlHTTP.open("POST", 'ajax_upload.php', true);
	xmlHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	http.send(document.getElementsByName("filenameUp").value); 
}
*/

function	mySubmit()
{
	document.getElementById("progress").innerHTML = "<center><img src=\"images/load.gif\" style=\"border: 1px solid #660000; background: #FFFFFF; padding: 5px;\" /></center>";
	document.upForm.submit();
}
	
function	writeParent(win, text)
{
	win.document.getElementById("progress").innerHTML = "<p>" + text + "</p>";
	//alert(win.document.getElementById("inpFile").innerHTML);
	win.document.getElementById("inpFile").innerHTML = "<input id=\"document_file\" name=\"myUp\" size=\"30\" type=\"file\" />";
}
