function GetX( cw ) {
	return ( cw > screen.width ) ? 0 : ( parseInt( ( screen.width / 2 ) - ( cw / 2 ) ) - 5 );
}

function GetY( ch ) {
	return ( ch > screen.height ) ? 0 : ( parseInt( ( screen.height / 2 ) - ( ch / 2 ) ) - 5 );
}

function ShowPicture( url, _id, _title, cw, ch, cx, cy ) {
	hWnd = window.open( '', _id, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=' + cw + ', height=' + ch + ', left=' + cx + ', top=' + cy + ', screenX=' + cx + ', screenY=' + cy );
	hWnd.document.write( '<?xml version=\"1.0\" standalone=\"no\" encoding=\"utf-8\"?>\n' );
	hWnd.document.write( '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n' );
	hWnd.document.write( '<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\" dir=\"ltr\">\n' );
	hWnd.document.write( '\t<head>\n' );
	hWnd.document.write( '\t\t<title>' + _title + '</title>\n' );
	hWnd.document.write( '\t\t<meta http-equiv=\"Content-Type\" content=\"application/xhtml+xml; charset=utf-8\" />\n' );
	hWnd.document.write( '\t\t<meta name=\"author\" content=\"mondo style\" />\n' );
	hWnd.document.write( '\t\t<style type=\"text/css\" media=\"screen\">\n' );
	hWnd.document.write( '\t\t\tbody {\n' );
	hWnd.document.write( '\t\t\t\tbackground-image 	: url( \"' + url + '\" );\n' );
	hWnd.document.write( '\t\t\t\tmargin           	: 1pt;\n' );
	hWnd.document.write( '\t\t\t\tpadding          	: 1pt;\n' );
	hWnd.document.write( '\t\t\t}\n' );
	hWnd.document.write( '\t\t</style>\n' );
	hWnd.document.write( '\t</head>\n' );
	hWnd.document.write( '\t<body onclick="window.close();">\n' );
	hWnd.document.write( '\t\t&nbsp;\n' );
	hWnd.document.write( '\t</body>\n' );
	hWnd.document.write( '</html>\n' );
	hWnd.document.close();
	hWnd.document.title = _title;
}
