function AjaxUpload(objectName, type, typeAllowed)
{
	window.open('upload.asp?typeAllowed=' + typeAllowed + '&object=' + objectName + '&folder=images&type=' + type, "fileUploadWindow", "status = 1, height = 300, width = 300, resizable = 0");
}

function SetFile(objectName, filePath, fileType)
{
	
	if (fileType == "img")
	{
		document.getElementById('_' + objectName).src = 'resize.asp?mappath=true&width=80&path=' + filePath;
		document.getElementById(objectName).value = filePath;
	}
	else
	{
		$(objectName).value = filePath;
	}
}
