function OpenPictureByAddress(ImageAddress)
{
	tmpImg = new Image();
	tmpImg.src = ImageAddress;
	newWindow=window.open(ImageAddress,'ImagePreview','scrollbars=yes,toolbar=no,width=' + tmpImg.width + ',height=' + tmpImg.height);
	newWindow.document.write('<html><head><title>ImagePreview<\/title><\/head><body background="' + ImageAddress + '" style="background-repeat: no-repeat"><\/body><\/html>');
	newWindow.resizeBy(tmpImg.width - newWindow.document.body.clientWidth, tmpImg.height-newWindow.document.body.clientHeight);
	newWindow.focus();
	
}
function OpenFileManager(serverFoder,managerType,managerRequests,RelatedScript)
{
	
	window.open(serverFoder + '/MainControls/RavianFileManager.aspx?ManagerType=' + managerType + '&PS=' + RelatedScript + managerRequests,'ImageManager','width=550,height=400,scrollbars=yes');
}

