var newwindow;

function ImagePop2( url, title ) {

	//vTest = getImgSize( url ) ;
	//alert( vTest ) ;
	
	var w=400; //getImageWidth( url ) ;
	var h=300; //getImageHeight( url );
	
	var wxh = "width=" + w.toString() + ", height=" + h.toString() ;
	// alert( wxh );
	newwindow =
	window.open( url, title, wxh) ;
	if (window.focus) {newwindow.focus()}
}

function getImgSize(id){
	alert( id );
	var pic = document.getElementById(id);
	var h = pic.offsetHeight;
	var w = pic.offsetWidth;
	alert ('The image size is '+w+'*'+h);
}


function getImageWidth(myImage) {
	var x, obj;

	if (document.layers) {
		var img = getImage(myImage);
		return img.width;
	} else {
		return getElementWidth(myImage);
	}
	return -1;
}

function getImageHeight(myImage) {
	var y, obj;
	if (document.layers) {
		var img = getImage(myImage);
		return img.height;
	} else {
		return getElementHeight(myImage);
	}
	return -1;
}

