function confirm_del()
{
			input_box=confirm("Click OK to DELETE or Cancel to Return"); 
			if (input_box==true) 	 return(true); 
			else 					         return(false); 
}

function openPopup(URL, width, height)
{
		WindowHandle=window.open(URL, '_blank', 'height=' +height+ ',width=' +width+ ',toolbar=no,scrollbars=0,resizable=1');
}

function previewimgdetails(fileobj,imgobj,commentobjname)
{
	imgobj.src = fileobj.value;
	co = document.getElementById(commentobjname);
	//iob = imgobj;
	temp_image = new Image()
  temp_image.src = imgobj.src;
	setTimeout("co.innerHTML = getimagedetails(temp_image);",1000);
}

function getimagedetails(imageobject)
{
	//alert(imageobject.fileSize);
	HTML = Math.round(imageobject.fileSize*0.1024)/100;
	HTML += "KB. ";
	HTML += " Est. " + Math.round(imageobject.fileSize/5000) + "s to upload @ 56k ";
	HTML += imageobject.width + "x" + imageobject.height + " pixels.";
	return HTML;
}


function PopupOfImageSize(picURL,picTitle,picWidth,picHeight)
{
      newWindow=window.open(picURL,'newWin','toolbar=no, width='+picWidth+',height='+picHeight+',scrollbars=0,resizable=1')
      newWindow.document.write('<html><head><title>'+picTitle+'<\/title><\/head><body marginheight=0 marginwidth=o topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0><img onLoad="window.resizeTo(width+10,height+50);window.focus();" src="'+picURL+'"><\/body><\/html>')
} 

function newImage(arg) 
{
	if (document.images) 
  {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
	
function ci() 
{
	if (document.images && (preloadFlag == true)) 
  {
		for (var i=0; i<ci.arguments.length; i+=2) 
    {
			document[ci.arguments[i]].src = eval(ci.arguments[i+1]).src;
		}
	}
}
