
var height = screen.height;
var width = screen.width;
var leftpos = 10//width / 2 - 50;
var toppos = 10//height / 2 - 50;

function encode(str){ // Netscape fix thanks to Cyanide_7
	return escape(str.replace(/ /g,'+'));
}

function view(what) {
	var url = 'imagedetails.php?image='+encode(what);
//	var url = 'imagetext.htm?'+encode(what);
	window.open(url,'WIN','scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=400,height=300,left=' + leftpos + ',top=' + toppos);
}


