function openPictureWindow(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop)
{
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'<'+'/title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"><table border="0" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle">');

	if(imageType == "swf")
	{
		newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+imageWidth+'" height="'+imageHeight+'">');
		newWindow.document.write('<param name=movie value="'+imageName+'"><param name="quality" value="high">');
		newWindow.document.write('<embed src="'+imageName+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+imageWidth+'" height="'+imageHeight+'">');
		newWindow.document.write('</'+'embed></'+'object>');
	}
	else
	{
		newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="'+alt+'" />');
	}
	newWindow.document.write('<'+'/td><'+'/tr><'+'/table><'+'/body><'+'/html>');
	newWindow.document.close();
	newWindow.focus();
}

function getHTML(url,pars,meth,div) {
	url = '/ajax.php?prov='+url;
	if(div == undefined) {
		div = '';
	}
	divb = 'div' + div;
	var myAjax = new Ajax.Updater(
		{success: divb},
		url,
		{
			method: meth,
/*			onComplete: function() { document.getElementById(divb).innerHTML = '<select name="' + div + '" id="' + div + '">' + document.getElementById(divb).innerHTML + '</select>'; },*/
/*			onComplete: function() { alert(document.getElementById(divb)); alert(divb); },*/
			parameters: pars
		}
	);
}