function swfPrint(f_url, f_id, f_w, f_h)
{
	if (navigator.appName == "Netscape")
	{
		document.write('<object id="' + f_id + '" type="application/x-shockwave-flash" data="' + f_url + '" width="' + f_w + '" height="' + f_h + '" ');
		document.write('wmode="window" ');
		document.write('name="' + f_id + '" ');
		document.write('allowScriptAccess="always" ');
		document.write('scale="showall" ');
		document.write('swLiveConnect="true" />');
	}
	else
	{
		document.write('<object id="' + f_id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + f_w + '" height="' + f_h +'" align="middle">');
		document.write('<param name="movie" value="' + f_url + '" />');
		document.write('<param name="wmode" value="window" />');
		document.write('<param name="allowScriptAccess" value="always" />');
		document.write('<param name="swLiveConnect" value="true" />');
		document.write('<param name="scale" value="showall" />');
		document.write('</object>');
		document.write('<!-- Hixie method -->');
		document.write('<!--[if !IE]> <-->');
		document.write('<object id="' + f_id + '" type="application/x-shockwave-flash" data="' + f_url + '" width="' + f_w + '" height="' + f_h + '" ');
		document.write('wmode="window" ');
		document.write('name="' + f_id + '" ');
		document.write('allowScriptAccess="always" ');
		document.write('scale="showall" ');
		document.write('swLiveConnect="true" />');
		document.write('<!--> <![endif]-->');
	}
}

function getF(val)
{
	if (navigator.appName.indexOf("Microsoft") != -1)
	{
		return window[val];
	}
	else
	{
		return document[val];
	}
}

function doBlock()
{
	location.reload();
}

function openPicUploader()
{
	var w = 320;
	var h = 130;
	window.open("picUploader.html", "picUploader", "width=" + w + ", height=" + h + ", left=" + (screen.availWidth / 2 - w / 2) + ", top=" + (screen.availHeight / 2 - h / 2 - 20) + ", menubar=0, scrollbars=0, status=0, toolbar=0, location=0, directories=0, resizable=0");
}

function picUploadCheck(f)
{
	if (!f.pic.value)
	{
		alert("Select your picture.");
		f.top_file.focus();
		return false;
	}
	
	f.submit();
}