function doUpload(id)
{
	w = 250	;
	h = 150;
	newwin = window.open('/administration/contentobject/upload.asp?id='+id,'','width=' + w + ',height=' + h + ',left=' + eval(screen.width/2 - w /2) + ',top=' + eval(screen.height/2 - h /2) +  ',resizable=1,scrollbars=0,menubar=0,titlebar=0,location=0');
}

function openUpload()
{
	var d = document;
	if (d != null)
	{
		if (d.all('url') != null && d.all('url') != null)
		{
			if (d.all('url').value != '')
			{
				if(confirmBox('This will delete the previously uploaded document. Do you wish to continue?'))
				{
					doUpload()
				}	
			} else {
				doUpload()
			}
		}
	}
}
