function winOpen(img,w,h){
	var LeftPosition = (screen.width)? (screen.width-w)/2 : 0; 
	var TopPosition = (screen.height)? (screen.height-h)/2 - 20 : 0; 
	var winn=",left="+LeftPosition+",top="+TopPosition;
	
	myWin=window.open(img,"winName","width="+w+",height="+h+",status=no,toolbar=no,menubar=no,scrollbars=yes"+winn);
	//myWin.document.open();
//	myWin.document.write("<img src=\""+f+"\" width="+(ff-10)+" border=0 onclick=\"self.close();\" alt=\"Click on the image to close the window\" style=\"cursor:hand\">");
	
	 return true; 
}

