/*
function moreActionsEmailImage(imageId, fromName, fromEmail)
{
	divHide('popLayer',true);
	
	var popObject = new Object();
	
	popObject.closeLowerAccess = true;
	popObject.darkOutBackground = true;
	
	popObject.content =  '<table width="400" border="0" cellspacing="0" cellpadding="8" bgcolor="#F0F0F0">';
	popObject.content += '	<tr>';
	popObject.content += '		<td valign="top" align="left"><div id="popLayerEmailAlert" style="display: none; color: #FF0000;"></div>';
	
	popObject.content += '		From name:<br>';
	popObject.content += '		<input id="popLayerEmailFromName" type="text" style="width: 384;" value="' + fromName + '"><br>';
	popObject.content += '		<br>';
	//popObject.content += '		From email:<br>';
	//popObject.content += '		<input id="popLayerEmailFromEmail" type="text" style="width: 384;" value="' + fromEmail + '"><br>';
	//popObject.content += '		<br>';
	popObject.content += '		To email:<br>';
	popObject.content += '		<input id="popLayerEmailToEmail" type="text" style="width: 384;"><br>';
	popObject.content += '		<br>';
	popObject.content += '		Comment:<br>';
	popObject.content += '		<textarea id="popLayerEmailComment" style="width: 384; height: 200;"></textarea></td>';
	
	popObject.content += '		</td>';
	popObject.content += '	</tr>';
	popObject.content += '</table>';
	popObject.content += '<img src="gfx/_000000.gif" alt="" width="400" height="1" border="0"/><br>';
	popObject.content += '<table width="400" border="0" cellspacing="0" cellpadding="10">';
	popObject.content += '	<tr>';
	popObject.content += '		<td align="right">';
	popObject.content += '		<table border="0" cellspacing="0" cellpadding="0">';
	popObject.content += '			<tr>';
	popObject.content += '				<td><a href="JavaScript:divHide(\'popLayer\',' + popObject.closeLowerAccess + ');" onfocus="blur()"><img src="gfx/button_cancel.gif" alt="" width="52" height="20" border="0"/></a></td>';
	popObject.content += '				<td><img src="gfx/_blank.gif" alt="" width="10" height="1" border="0"/></td>';
	popObject.content += '				<td><a href="JavaScript:moreActionsEmailImageSend(' + imageId +');" onfocus="blur()"><img src="gfx/button_submit.gif" alt="" width="52" height="20" border="0"/></a></td>';
	popObject.content += '			</tr>';
	popObject.content += '		</table>';
	popObject.content += '		</td>';
	popObject.content += '	</tr>';
	popObject.content += '</table>';	
	
	document.getElementById("popLayerContent").innerHTML = popObject.content;
	document.getElementById("popLayerHeadline").innerHTML = "<b>Email image</b>";
	document.getElementById('popLayerTopSizer').width = 1;

	divShow('popLayer', Math.floor((document.body.clientWidth - 400)/2), 100, popObject.closeLowerAccess, popObject.darkOutBackground);
	
	popLayerReposition();
}

function moreActionsEmailImageSend(imageId)
{
	var error = "";
	
	var fromName = document.getElementById('popLayerEmailFromName');
	var fromEmail = "";//document.getElementById('popLayerEmailFromEmail');
	var toEmail = document.getElementById('popLayerEmailToEmail');
	var comment = document.getElementById('popLayerEmailComment');
	
	if(fromName.value == "")
		error += '"From name" is missing or contains none alpha characters.<br>';
	
	//if(!isValidEmail(fromEmail.value))
	//	error += '"From email" is not a valid email<br>';
	
	if(!isValidEmail(toEmail.value))
		error += '"To email" is not a valid email<br>';
	
	var re = new RegExp("[<>]", "g");
	
	if(comment.value != comment.value.replace(re, ""))
		error += 'Only characters and numbers are allowed in "comment"<br>';
	
	if(error == "")
	{
		dataRequest(serverUrl + "ajax/Mail.aspx?action=emailImage&imageId=" + imageId + "&fromName=" + fromName.value + "&fromEmail=" + fromEmail.value + "&toEmail=" + toEmail.value + "&comment=" + escape(comment.value), insureSeverUpdate);
		moreActionsEmailImageThanks();
	}
	else
	{
		document.getElementById('popLayerEmailAlert').innerHTML = "<b>" + error + "</b><br>";
		document.getElementById('popLayerEmailAlert').style.display = "block";
	}
}

function moreActionsEmailImageThanks()
{
	divHide('popLayer',true);
	
	var popObject = new Object();
	
	popObject.closeLowerAccess = true;
	popObject.darkOutBackground = true;
	
	popObject.content =  '<table width="400" border="0" cellspacing="0" cellpadding="8" bgcolor="#F0F0F0">';
	popObject.content += '	<tr>';
	popObject.content += '		<td valign="top" align="left">Email has been sent.</td>';
	popObject.content += '		</td>';
	popObject.content += '	</tr>';
	popObject.content += '</table>';
	popObject.content += '<img src="gfx/_000000.gif" alt="" width="400" height="1" border="0"/><br>';
	popObject.content += '<table width="400" border="0" cellspacing="0" cellpadding="10">';
	popObject.content += '	<tr>';
	popObject.content += '		<td align="right">';
	popObject.content += '		<table border="0" cellspacing="0" cellpadding="0">';
	popObject.content += '			<tr>';
	popObject.content += '				<td><a href="JavaScript:divHide(\'popLayer\',' + popObject.closeLowerAccess + ');" onfocus="blur()"><img src="gfx/button_continue.gif" alt="" width="66" height="20" border="0"/></a></td>';
	popObject.content += '			</tr>';
	popObject.content += '		</table>';
	popObject.content += '		</td>';
	popObject.content += '	</tr>';
	popObject.content += '</table>';	
	
	document.getElementById("popLayerContent").innerHTML = popObject.content;
	document.getElementById("popLayerHeadline").innerHTML = "<b>Email image</b>";
	document.getElementById('popLayerTopSizer').width = 1;

	divShow('popLayer', Math.floor((document.body.clientWidth - 400)/2), 100, popObject.closeLowerAccess, popObject.darkOutBackground);
	
	popLayerReposition();
}
*/